Android Activity Properties

Source: Internet
Author: User

Android:allowtaskreparenting
Whether to allow activity to replace dependent tasks, such as switching from a short message task to a browser task.
Android:alwaysretaintaskstate
Whether to keep the state unchanged, such as switching back to home, and then new open, the activity is in the final state
Android:cleartaskonlanunch
For example, p is activity, Q is the activity that is triggered by P, and then returns to home, the new start P, whether to show Q
Android:configchanges
Whether the onconfigurationchanged () method such as "Locale|navigation|orientation" is called when the configuration list changes.
Android:enabled
Whether the activity can be instantiated,
Android:excludefromrecents
Whether it can be displayed in the recently opened Activity list
android:exported
Whether activity is allowed to be called by other programs
Android:finishontasklaunch
Whether to close open activity when the user restarts the task
Android.icon
Android:label
Android:launchmode
Activity start mode, "standard" "Singletop" "Singletask" "SingleInstance"
One of the first two is a group, the last two are a group
Android:multiprocess
Allow multi-process
Android:name
The class name of the activity, which must be specified
Androidnhistory
Whether you need to remove this activity when the user switches to another screen. This attribute is introduced in API level 3.


Android:permission
Android:process

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 in the process property can set a new default value for all components. But 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 process dedicated to the program 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.

Android:screenorientation
Activity shows the mode, "unspecified" default value "Landscape" landscape mode, the width is larger than the height of "Portrait" portrait mode, height is larger than the width. "User" users ' settings "behind" "Sensor" "Nosensor"

android:statenotneeded
Whether the activity is destroyed and successfully restarted does not save the state
Android:taskaffinity
The activity's kinship, by default, has the same relationship as the activity under an application
Android:theme
Activity's style theme, if not set, the activity's theme style belongs to the application, see element's Theme property
Android:windowsoftinputmode
Interactive mode of Activity main window and soft keyboard, since API Level 3 was introduced
How the active main window interacts with the Soft keyboard window on the containing screen. The setting of this property will affect two things:
1> the state of the soft keyboard-whether it is hidden or displayed-when the activity becomes the focus of the user's attention.
2> Active main Window adjustment-whether to reduce the active main window size to make room for a soft keyboard or whether the current focus of its content is visible when part of the active window is overwritten by a soft keyboard.
It must be set to a value in the list below, or a "state ..." value plus a combination of "adjust ..." values. Set multiple values in either group-multiple "state ..." values, such as &mdash, have undefined results. Each value is separated by | Example: <activityandroid:windowsoftinputmode= "Statevisible|adjustresize" ... >
The value set in this (except "stateunspecified" and "adjustunspecified") overrides the value set in the topic
Value Description
The state of the "stateunspecified" soft keyboard (whether it is hidden or visible) is not specified. The system will select an appropriate state or a theme-dependent setting. This is the default setting for the software disk behavior.

The "stateunchanged" soft keyboard is maintained regardless of its last state, whether visible or hidden, when the main window appears in front.
"Statehidden" When the user chooses the activity, the soft keyboard is hidden-that is, when the user determines to navigate to the activity, instead of returning to it due to leaving another activity.
The "Statealwayshidden" soft keyboard is always hidden when the activity main window gets focus.
The "statevisible" soft keyboard is visible when that is normal (when the user navigates to the Activity main window).
"Statealwaysvisible" When the user chooses this activity, the soft keyboard is visible-that is, when the user determines that the activity is navigated to, rather than returning to it due to leaving another activity.

"Adjustunspecified" It is not specified whether the Activity main window is resized to allow space for the soft keyboard, or whether the contents of the window are visible on the screen with the current focus. The system will automatically select one of these modes primarily depending on whether the contents of the window have any layout view that can scroll their content. If there is such a view, the window will be resized so that the contents of the scrolling window can be visible in a smaller area. This is the default behavior setting for the main window.

"Adjustresize" The activity main window is always resized on the screen to allow space for the soft keyboard.

"Adjustpan" The Activity main window does not adjust the size of the screen to allow space for the soft keyboard. Instead, the contents of the current window are automatically moved so that the current focus is never covered by the keyboard and the user can always see the part of the input. This is usually not expected than resizing, because the user may turn off the soft keyboard in order to get an interactive operation with the covered content.

Android Activity Properties

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.