Androidmanifest.xml Activity Property Settings Daquan

Source: Internet
Author: User


1.android:allowtaskreparenting=["true" | " False "]
Whether to allow activity to replace dependent tasks, such as switching from a short message task to a browser task.
  
2.android:alwaysretaintaskstate=["true" | " False "]
Whether to keep the state unchanged, such as switching back to home, and then new open, the activity is in the final state
  
3.android:cleartaskonlaunch=["true" "|" False "]
For example, p is activity,q is triggered by P activity, and then return to home, the new start p, whether to show Q
  
4.android:configchanges=[oneormoreof: "MCC" "MNC" "locale" "Touchscreen" "Keyboard" "Keyboardhidden" "Navigation" " Orientation "" Fontscale "]
Whether the onconfigurationchanged () method such as "Locale|navigation|orientation" is called when the configuration list changes.
  
5.android:enabled=["true" | " False "]
Whether the activity can be instantiated,
  
6.android:excludefromrecents=["true" | " False "]
Whether it can be displayed in the recently opened Activity list
  
7.android:exported=["true" | " False "]
Whether activity is allowed to be called by other programs
  
8.android:finishontasklaunch=["true" | " False "]
Whether to close open activity when the user restarts the task
  
9.android:icon= "Drawableresource"
  
10.android:label= "Stringresource"
  
11.android:launchmode=["multiple" | " Singletop "|" Singletask "|" SingleInstance "]
Activity start mode, "standard" "Singletop" "Singletask" "singleinstance" of which the first two is a group, the latter two as a group
  
12.android:multiprocess=["true" | " False "]
  
13.android:name= "string"
  
14.android:nohistory=["true" | " False "]
Whether you need to remove this activity when the user switches to another screen. This attribute is introduced in APIlevel3.
  
15.android:permission= "string"
  
16.android:process= "string"
The name of the process in which the activity is run, and all program components run in the application's default process, which is the same name as the application's package name.
The element process property in <application> can set a new default value for all components. However, any component can override this default value, allowing you to
Put your program in a multi-process run. If this property is assigned the name begins with: When the activity is running, a new one is dedicated to the program's
The process will be created. If the process name starts with a lowercase letter, the activity will run in the global process and be provided by its permission.
  
17.android:screenorientation=["Unspecified" | " User "|" Behind "|" Landscape "|" Portrait "|" Sensor "|" Nonsensor "]
Activity display mode, "unspecified" default value "Landscape" landscape pattern, width than height some "portrait" portrait mode, height ratio
Large width. "User" users ' settings "behind" "Sensor" "Nosensor"
  
18.android:statenotneeded=["true" | " False "]
Whether the activity is destroyed and successfully restarted does not save the state
  
19.android:taskaffinity= "string"
The activity's kinship, by default, has the same relationship as the activity under an application
  
20.android:theme= "Resourceortheme"
Activity's style theme, if not set, the activity's theme style belongs to the application, see the <application> element's Theme property
  
21.android:windowsoftinputmode=[oneormoreof: "stateunspecified" "stateunchanged" "Statehidden" "StateAlwaysHidden"
"Statevisible" "statealwaysvisible" "adjustunspecified" "Adjustresize" "Adjustpan"]>
Interaction mode between the Activity main window and the soft keyboard, since APILEVEL3 was introduced
  

Androidmanifest.xml Activity Property Settings Daquan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.