app: After creating the project, automatically create a name for the Module app
manifests: Save the configuration file
java: Save java source code files
res: save the resource file
Gradle Scripts: Gradle build and save the file attributes
Node manifests
manifests node for displaying a profile Android application
<? XML Version = "1.0" encoding = "UTF-. 8"?> <the manifest xmlns: Android = "http://schemas.android.com/apk/res/android" // the manifest root node, the package described in All content // xmlns: android statement containing namespace package = "com.example.androiduidemo"> // declare the application package <application // root node contains package-level components in the application declared android: allowBackup = "true" Android: icon = "@ mipmap / ic_launcher" // application icon Android: label = "@ String / app_name" // applications tab, the application shall specify the name of Android: roundIcon = "@ mipmap / ic_launcher_round" Android:supportsRtl="true" android:theme= "@ style / AppTheme"> // subject of an application using the <Activity Android: name =. "MainActivity"> // and the main tool for user interaction, it is a user opens an application's initial screen <intent-filter > // configure Intent filter // assembly supported by the Action Intent <Action Android: name = "android.intent.action.MAIN" /> // component supports the category Intent <category Android: name = "android.intent.category .LAUNCHER "/> </ Intent-filter> </ Activity> </ file application> </ the manifest>
The former store Java source files, which is a unit test node
Default generation MainActivity.java
Package com.example.androiduidemo; // the specified package Import androidx.appcompat.app.AppCompatActivity; Import android.os.Bundle; // import class public class the MainActivity the extends AppCompatActivity { // this is the callback method when creating Activity, for performing the initialization the Activity @Override protected void the onCreate (the Bundle savedInstanceState) { Super .onCreate (savedInstanceState); the setContentView (R.layout.caculatur_layout); // call to the layout file layout run } }
drawable subdirectory
drawable subdirectory is often used to save the image resources, such as PNG, JPEG, GIF pictures, 9-Patch Shape or resource file
layout subdirectories
layout subdirectory mainly used to store layout file
mipmap subdirectory
Mainly used to save the application icon to start the project
values subdirectory
subdirectory is commonly used string values, style and size used in the application resource conservation.