New Android Component Dialog
In this dialog, specify the class that implements the new Android component, the component type, and the title to be displayed to the user.
|Name|| In this text box, type the name of the class that implements the component. |
|Kind|| In this drop-down list, specify the component type. The available options are: |
- AIDL: an Android Interface Definition Language (AIDL) interface used for interprocess communication.
- Activity: implements a window where you place your UI to interact with the user.
- Android Auto: lets you extend your application for use in vehicles. You can add either Media Service or Messaging Service activity.
- Folder: creates a source root based on the activity you have selected for this component.
- Fragment: represents a behavior or a part of user interface in an activity.
- Google: lets you create an activity for Google maps and AdMob Ads activities.
- Application: an Android package, i.e. an
.apk archive that contains the contents of an Android app and the installer.
- Service: represents an application's desire either to perform an operation without interacting with the user, or to supply functionality for other applications.
- Other: lets you add the following components to your application:
- UI Component: lets you add custom views to you application.
- Wear: lets you extend your application for use in Android wear.
- Widget: lets you add different types of widgets for your application.
- XML: lets you add different types .xml files for Android layouts and values.
|Label|| In this text box, type the title that will be displayed to the user. |
- If no title is specified, the label assigned to the entire application will be displayed.
- No label is specified for the Remote Interface component.
|Mark as startup Activity|| Select this checkbox to have the new component of the Activity type displayed by default when the application starts. |
The checkbox is available only when the Activity component type is specified in the Kind drop-down list.
| Create layout file || |
- Select this checkbox to have IntelliJ IDEA generate a stub of the related layout definition file, that is, the content view of the new activity or fragment.
- If the checkbox is cleared, you will have to create a content view of the new activity or fragment manually.
The checkbox is available only for the activity or fragment component types.
Last modified: 12 January 2018