Lattice formula:
<activity android:allowtaskreparenting=["true" | "false"] android:alwaysretaintaskstate=["true" | "false"] android:cleartaskonlaunch=["true" | "false"] android:configchanges=["MCC", "MNC", "locale", "touchscreen", "keyboard" , "Keyboardhidden", "Navigation", "Screenlayout", "Fontscale", "Uimode", "Orientation", "screensize", "smallestscreensize"] android:enabled=["true" | "false"] android:excludefromrecents=["true" | "false"] android:exported=["true" | "false"] android:finishontasklaunch=["true" | "false"] android:hardwareaccelerated=["true" | "false"] android:icon= "drawable resource" android:label= "string resource" android:launchmode=[" Multiple "| "Singletop" | "Singletask" | "SingleInstance"] android:multiprocess=["true" | "False"] Android:name= "string" android:nohistory=["true" | "false"] android:parentactivityname= "string" android:permission= "string" android:process= "St Ring "android:screenorientation=[" Unspecified "| "Behind" | "Landscape" | "Portrait" | "Reverselandscape" | "Reverseportrait" | "Sensorlandscape" | "Sensorportrait" | "Userlandscape" | "Userportrait" | "Sensor" | "Fullsensor" | "Nosensor" | "User" | "Fulluser" | "Locked"] android:statenotneeded=["true" | "false"] android:taskaffinity= "string" android:theme= "resource or Theme" android:uioptions=["No Ne "| "Splitactionbarwhennarrow"] android:windowsoftinputmode=["stateunspecified", "Stateunchanged", "Statehidden", "Statealwayshidden", "statevisible", "Statealwaysvis Ible "," adjustunspecified "," Adjustresize "," Adjustpan "] > ... </activi Ty>
Parent Tag:<application>
Sub-label:<intent-filter>
<meta-data>
Descriptive narrative: Each activity must be declared in the Mainifest file, and no declared activity system is considered invisible and will not be called by the system.
Number of references:
Android:allowtaskreparenting default false.
This property is used to mark whether an activity instance can be moved from the task that initiates it to a task with a common affinity after the current application has been retired, "true" means that it is able to move, "false" means that it must remain in the currently applied task.
Android:alwaysretaintaskstate default false.
This property is used to mark whether the applied task remains in its original state, "true" means that it is always persisted, and "false" means that it cannot be guaranteed.
By default. Suppose an app spends too much time in the background, say, 30 minutes. When the user selects the app again from the main menu, the system cleans up the task for that app. Except for the root activity, the other activity is cleared out of the stack, but it is assumed that this property is set in the root activity. When the user starts the app again, you can still see the interface for the last action.
Android:cleartaskonlaunch default false.
This number means that whenever the activity starts again from home screen, you simply press the desktop icon. This activity was the first one to be launched. But the only thing to note is that if you press home, it means that the activity is not over. So you're pressing sometimes it won't be the first time.
This activity will be initiated for the first time when you press back or end a task that is currently running, such as a behavior that can end activity. Often android:cleartaskonlaunch= "True" is a main entry.
Android:configchanges when the content parameter in the list configured at execution is changed, the onconfigurationchanged () will be called.
Configure multiple content to pass the ' | ' Way, such as "locale|navigation|orientation".
Here are some of the things you can configure:
"MCC"IMSI Mobile Country Code Changes
"MNC"IMSI code changes for mobile networks
"Locale"Location change, when the user chooses a new language
"Touchscreen"Touch screen changes. (This should not normally happen)
"Keyboard"When the keyboard type changes
"Keyboardhidden"Keyboard accessibility has changed-for example, the user displays a hardware keyboard.
"Navigation"The navigation type changes.
(This should not normally happen)
"Screenlayout"The screen layout has changed-this may be because different displays are activated.
"Fontscale"Font size Change
"Uimode"The user interface mode has changed, which can result when the user puts the device on the desk/car dock or when the night mode changes.
"Orientation"The screen orientation has changed-the user spins the device.
"ScreenSize"The currently available screen size has changed
"Smallestscreensize"The physical screen size has changed
"LayoutDirection"The orientation of the layout has changed.
Android:enabled default True
Whether the activity can be instantiated by the system-"true" is assumed to be possible, assuming it is not "false".
Android:excludefromrecents default True
Whether the task initiates this activity should be excluded from the list of recently used applications.
Set "true" to assume that the task should be excluded from the list and that the setting "false" should be included.
Android:exported Default False
Whether the activity can be opened by other components of the application. "True" can. "False" cannot.
Android:finishontasklaunch Default False
Assuming that the transaction is opened again, then the original existence will not be closed. "True" turns off when the original is turned on. "False" does not close.
Android:hardwareaccelerated Default False
Whether hardware-accelerated rendering should support this activity.
Android:icon setting icon
Android:label Settings tab
How to start the Android:launchmodeactivity
"Standard"By default, the system will always create a new activity instance in the target stack and set the intent path.
"Singletop"Assuming an activity already exists at the top of the target stack, the system creates a new intent with the Onnewintent () method instead of creating a new activity
"Singletask"Assuming that no corresponding activity is found, a new activity is created at the bottom of the task stack. Assuming the activity already exists, onnewintent () a new intent instead of building a new activity.
"SingleInstance"As with "Singletask", the system does not initiate any other activity to save the instance in the task stack. Activity is always singleton. The only member of a task stack.
Android:multiprocess Default False
Whether an activity instance can be created by its component is started in a process. Typically, a new instance of an activity-initiated process is defined by the application, so all instances of the activity are executed in the same process. However, assuming that the flag is set to "true", the active instance is able to execute multiple processes, agreeing that the system does not use them to create an instance (providing permission to consent to it), which is almost never necessary or desirable.
Android:nameactivity's name, for example "Com.example.project.ExtracurricularActivity"
Android:nohistory Default False
When you leave the activity, it is not available, and the activity can be removed from the stack and Finishi (). "True" means that activity does not leave traces of history.
It will not remain on the activity stack of the task, so the user will not be able to return.
Android:parentactivityname the name of the logical parent class.
The system reads this property to determine which activity should start using the press button in the Action Bar. The system can also use this information to synthesize activities with Taskstackbuilder back to the stack.
Android:permission the name of the permission, the customer must initiate the activity or let it reply to the intent. Assuming that the caller startactivity () or Startactivityforresult () is not granted the specified license, its intent will not be to deliver the activity.
Assuming that this property is not set, the license properties of the set license <application> element apply to the activity.
Assuming there is no property set, the activity is not protected by rights.
The process name in which the android:processactivity is located is usually not required.
The direction displayed by the android:screenorientationactivity. Choose to have either of the following:
"Unspecified"Default. Selected by the system.
"Behind"In the same direction as the activity under its stack.
"Landscape"Landscape mode, show ground ratio aspect
"Portrait"Sketch mode, showing the height of the ground than the width
"Reverselandscape"The transverse opposite direction from the normal landscape.
"Reverseportrait"Xiaoxiangfang to the opposite direction from the normal portrait
"Sensorlandscape"Horizontal, but can be normal or reverse the landscape on the basic equipment of the sensor.
"Sensorportrait" portrait orientation, but can be normal or reverse portrait based device sensor.
"Userlandscape" Horizontal, but can be normal or reverse landscape depending on the user's device sensor and sensor preferences. Assuming the user has locked the sensor rotation, it is landscape, and conversely, the sensorlandscape.
"Userportrait" portrait orientation, but can be normal or reverse portrait based on user device sensor and sensor preferences. Assuming the user has locked the sensor rotation, it is portrait, and vice versa. is the sensorportrait.
The "sensor " direction is determined by the device orientation sensor. The direction of the display depends on the user's device, which changes when the user rotates the device.
Just, some devices do not rotate four possible directions, by default. Agree to all four directions, using "Fullsensor".
The "Fullsensor " direction is the 4 direction that the device locates the sensor.
This is similar to the "sensor", except that it agrees that no matter what the possible 4 screen orientation, no matter what the device typically 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 mobile device. In addition to this difference, the system chooses to use the same policy-oriented "unspecified" setting.
Current preferred orientation of "user" users.
"Fulluser" assumes that the user has locked the sensor rotation. Is "user", conversely, "fullsensor" and agree to whatever the possible 4 screen orientation.
"Locked" lock direction of the current rotation, do not care what this is.
Android:statenotneeded Default False
Activity can not kill and do not need to keep the reboot without a state.
The android:taskaffinity activity has an associated task stack.
Android:theme The overall style of the resource reference defines a theme activity.
This topic is used by the context of the active setting itself.
An additional option for the Android:uioptionsactivity UI.
Must be one of the following values:
"None" defaults, No.
The "Splitactionbarwhennarrow " Join bar is located at the bottom of the screen. The action Bar is displayed when the action item is constrained in the horizontal space. Instead of a handful of action items in the action bar above the screen today. The action Bar is divided into the top navigation section and the bottom bar of the action item. This ensures a reasonable amount of space available not only for action items, but also for navigating at the top and heading elements at the same time.
menu items do not split in two columns; they always appear together.
Android:windowsoftinputmode form soft keyboard mode.
Setup method:
<activity android:windowsoftinputmode= "Statevisible|adjustresize" ... >
Brief introduction of the reference:
"Stateunspecified" By default, the system will be set without special requirements.
The "stateunchanged " Soft keyboard was last saved in whatever state, whether visible or hidden, when the activity went to the foreground.
The "Statehidden " Soft keyboard is hidden when the user chooses activity.
"Statealwayshidden" is always hidden.
"statevisible" visible when activity is activated
"statealwaysvisible" is always visible
Span style= "White-space:pre" > "adjustunspecified" does not specify whether the size of the active main form is a soft keyboard, or whether the contents of the form make the current focus on the screen visible.
The system of these modes will voluntarily choose one depending on the content of the form, regardless of the layout view and be able to scroll the content. If there is such a view, the form size, if scrolled, enables the contents of the form to be all visible in a smaller area.
The main form of the "adjustresize" activity is always resized so that the soft keyboard is in the form
The main form of the "Adjustpan" activity is not a soft keyboard resizing to make room.
Instead, the form itself proactively arranges content that the current focus will never be obtained by the keyboard, and users can see them typing. This is generally not possible, since the user may need to close the soft keyboard and shaded portions and interact with the form.
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Androidmainifest Label Description 2--<activity>