Format:
. . .
Parent Tag:
Sub-Tag:
Description: each Activity must be declared in the mainifest file. The Activity that has not been declared is invisible and will not be called by the system.
Parameters:
Android: allowTaskReparenting defaults to false.
This attribute is used to mark whether an Activity instance can be moved from the task started to the task with a common affinity after the current application exits from the background. "true" indicates that the Activity can be moved, "false" indicates that it must be in the task of the current application.
Android: the default value of alwaysRetainTaskState is false.
This attribute is used to indicate whether the task of the application is in the original state. "true" indicates that the task is always in state, and "false" indicates that the task is not guaranteed. By default, if an application stays in the background for 30 minutes, for example, after you select the application from the main menu, the system clears the task of the application, except for the root Activity, all other activities are removed from the stack. However, if this attribute is set in the root Activity, you can still see the interface of the last operation when starting the application again.
Android: the default value of clearTaskOnLaunch is false.
This parameter means that the activity will be restarted from home screen at any time, that is, as long as you press the desktop icon, this activity is initiated first. However, the only thing you need to note is that if you press "home creation", it means that this activity is not over, so you will not initiate it for the first time when you press it. Only when you press back or stop the task that is being executed will the activity be terminated for the first time. Generally, android: clearTaskOnLaunch = "true" is a main portal.
Android: configChanges: when the content parameter in the list configured at runtime changes, onConfigurationChanged () is called (). You can use "|" to configure multiple content, for example, "locale | navigation | orientation ". The following content can be configured:
"Mcc" IMSI mobile country code change
"Mnc" IMSI mobile network code change
"Locale" location changed. When you select a new language
"Touchscreen" Touch Screen changed. (This should not happen normally)
When the "keyboard" keyboard type changes
The accessibility of the "keyboardHidden" keyboard has changed-for example, the user displays the hardware keyboard.
The "navigation" navigation type is changed. (This should not happen normally)
"ScreenLayout" the screen layout has changed-this may be because different displays are activated.
"FontScale" font size change
The "uiMode" user interface mode has changed, which can cause changes when the user places the device on the desk/CAR terminal or when the night mode is changed.
"Orientation" the screen direction has changed-the user rotates the device.
"ScreenSize" the current available screen size has changed
"SmallestScreenSize" physical screen size changed
The layout direction of "layoutDirection" has changed.
Android: enabled, default value: true
Whether the Activity can be instantiated by the System-"true" If yes, if not "false ".
Android: excludeFromRecents default value: true
Whether or not the task should be excluded from the list of recently used applications. Set "true". If this task should be excluded from the list, set "false" to whether it should be included.
Android: exported; default value: false
Whether the Activity can be opened by other application components. "true" can be used, and "false" cannot be used.
Android: finishOnTaskLaunch; default value: false
If the transaction is opened again, will the original transaction be closed. "True" is disabled when it is enabled, and "false" is not disabled.
Android: hardwareAccelerated; default value: false
Whether hardware accelerated rendering should support this activity.
Android: icon setting icon
Android: label
Android: launchModeActivity startup Method
By default, the system will always create a new activity instance in the target stack and set the Intent path.
"SingleTop" if an activity already exists at the top of the target stack, the system creates an Intent using the onNewIntent () method instead of creating an Activity.
"SingleTask" If no corresponding activity is found, a new activity is created at the bottom of the task stack. If the Activity already exists, onNewIntent () A new Intent instead of creating a new activity.
"SingleInstance" is the same as "singleTask", except that the system does not start any activity to store instances in the task stack. Activity is always a Singleton, the only member of a job stack.
Android: the default value of multiprocess is false.
Whether an activity instance can be started by its components in a process. Normally, a new instance of an activity starts a process defined by the application, so all the active instances run in the same process. However, if this flag is set to "true", the active instance can run multiple processes, allowing the system to create instances regardless of whether they are used (providing permissions to allow it ), this is almost never necessary or desirable.
Android: nameactivity name, for example, "com. example. project. ExtracurricularActivity"
Android: noHistory default value: false
When the activity leaves, it cannot have both sides. In this case, can the activity be removed from the stack and finishi (). "True" means that the activity will not leave the traces of history. It will not stay in the activity stack of the task, so the user will not be able to return.
Android: name of the parentActivityName logical parent class. The System reads this attribute to determine which activities should start to use the press button in the Operation bar. The system can also use this information to integrate the stack-back activities with TaskStackBuilder.
Android: the name of the permission. The customer must start the activity or request it to reply to the intent. If the caller startActivity () or startActivityForResult () is not granted the specified permission, the intent is not to deliver the activity. If this property is not set, the permission property of the set license element applies to the activity. If no attribute settings are available, the activity is not protected by permissions.
Android: name of the process where processactivity is located. You do not need to set this parameter.
Android: The display direction of screenOrientationactivity. You can select either of the following:
"Unspecified" default, which is selected by the system.
"Behind" is the same direction as the activity under the stack.
"Landscape" landscape mode, with high area ratio and width
"Portrait" sketch mode, with a display location ratio higher than width
"ReverseLandscape" goes in the opposite direction from the normal landscape.
"ReversePortrait" looks in the opposite direction from the normal portrait
"SensorLandscape" horizontal, but can be either normal or reverse sensors on the Landscape base device.
"SensorPortrait" portrait orientation, but normal or reverse portraits can be based on device sensors.
"UserLandscape" horizontal, but can be normal or reverse landscape based on user device sensors and sensor preferences. If the user has locked the sensor rotation, It is landscape, and vice versa, it is sensorLandscape.
"UserPortrait" portrait orientation, but normal or reverse portraits can be performed depending on the user's device sensors and sensor preferences. If the user has locked the sensor rotation, It is portrait, and vice versa, it is sensorPortrait.
The "sensor" direction is the device direction sensor. The display direction depends on the user's device, which changes when the user rotates the device. However, some devices do not rotate in four possible directions. By default. "FullSensor" is allowed in all four directions ".
The "fullSensor" direction is four directions for the device to locate the sensor. This is similar to a "sensor", except that this allows any possible 4 screen direction, no matter what the device usually does
The "nosensor" direction determines that the physical direction sensor is not considered. The sensor is ignored, so the display does not rotate according to the user's mobile device. In addition to this difference, the system selects the "unspecified" setting with the same policy orientation.
"User": the user's current preferred orientation.
"FullUser" if the user has locked the sensor rotation, it is "user". Otherwise, "fullSensor" and allows any four screen directions.
The current rotation of the "locked" lock direction does not matter what it is.
Android: stateNotNeeded; default value: false
Whether the activity can be killed and restarted without being stateless.
Android: A Task Stack associated with the taskAffinity activity.
Android: theme resource reference defines a theme activity. This automatically sets the activity context to use this topic.
Android: an additional option for uiOptionsactivity UI. It must be the following value:
"None" default, no.
The "splitActionBarWhenNarrow" add bar is located at the bottom of the screen, and the action item is displayed in the action bar as the constrained horizontal space. Instead of a few action items that appear in the action bar on the top of the screen, the action bar is divided into the top navigation bar and the bottom bar of the action item. This ensures that a reasonable amount of space is available not only for action projects, but also for navigation and title elements at the top. Menu items are not split in two columns; they always appear together.
Android: windowSoftInputMode. Setting method:
Parameter introduction:
"StateUnspecified" default, the system will set no special requirements.
"StateUnchanged" the last time the keyboard is stored in any State, whether it is visible or hidden, when the activity goes to the foreground.
The "stateHidden" keypad is hidden when you select activity.
"StateAlwaysHidden" is always hidden.
"StateVisible" visible, when activity is activated
"StateAlwaysVisible" always visible
"AdjustUnspecified" does not specify whether the size of the active main form is a soft keyboard, or whether the content of the window is pot to make the current focus visible on the screen. In these modes, the system automatically selects a layout view that depends on the content of the window and can scroll the content. If there is such a viewpoint, the window size, assuming that scrolling can make the content of all visible windows in a small area.
The main window of the "adjustResize" activity always adjusts the size of the keyboard in the window.
The main window of the "adjustPan" activity is not a keyboard adjustment to free up space. On the contrary, the content automatically arranged by the window will never be obtained by the keyboard, and the user can see that they typed. This is usually not desirable because the user may need to close the keyboard and the blocked part and the Interaction window.