Activity attribute settings
Android: allowtaskreparenting = ["true" | "false"] whether to allow the activity to replace a subordinate task, such as switching from a short message task to a browser task.
Android: alwaysretaintaskstate = ["true" | "false"] whether the status is retained, for example, switching back to home and then re-opening. The activity is in the final state. Android: cleartaskonlaunch = ["true" "|" false "] For example, if p is activity, Q is activity triggered by P, and then return home, start p again, and check whether Q is displayed
Android: configchanges = [one or more: "MCC" "MNC" "locale" "touchscreen" "keyboard" "keyboardhidden" "navigation" "orientation" "fontscale"] whether to call onconfigurationchanged () when the configuration list is modified () for example, "locale | navigation | orientation ". android: enabled = ["true" | "false"] whether the activity can be instantiated,
Android: excludefromrecents = ["true" | "false"] whether it can be displayed in the list of recently opened activities
Android: exported = ["true" | "false"] indicates whether activity can be called by other programs.
Android: finishontasklaunch = ["true" | "false"] indicates whether to disable an opened activity. When a user restarts this task
Android: icon = "drawable resource" Android: Label = "string resource"
Android: launchmode = ["multiple" | "singletop" | "singletask" | "singleinstance"] activity startup mode, "standard" "singletop" "singletask" "singleinstance" where the first two are a group and the last two are a group.
Android: Multiprocess = ["true" | "false"] Android: Name = "string" Android: nohistory = ["true" | "false"] whether to remove this activity when the user switches to another screen. This attribute is Android: Permission = "string" introduced in API Level 3"
Android: Process = "string" indicates the name of the process in which the activity runs. All program components run in the default process of the application. The process name is consistent with the package name of the application. The element process attribute in <Application> can set a new default value for all components. However, any component can overwrite this default value, allowing you to run your program in multiple processes. If the assigned name starts with ":", a new process dedicated to this program will be created when the activity is running. If the process name starts with a lowercase letter, the activity runs in a global process and is provided by its license.
Android: screenorientation = ["unspecified" | "user" | "behind" | "Landscape" | "portrait" | "sensor" | "nonsensor"] display mode of activity, "unspecified" Default Value: "Landscape" Landscape Painting mode. The width is greater than the height. "portrait" portrait mode, and the height is greater than the width. "User" user's settings "behind" "sensor" "nosensor"
Android: statenotneeded = ["true" | "false"] whether the activity is destroyed and restarted successfully is not saved
Android: taskaffinity = "string" kinship of the activity. By default, the activity in the same application has the same relationship.
Android: theme = "resource or theme" activity style topic. If no theme is set, the activity style belongs to the application. For more information, see the theme attribute of the <Application> element.
Android: windowsoftinputmode = [one or more: "stateunspecified" "stateunchanged" "statehidden" "quiet" "statevisible" "statealwaysvisible" "adjustunspecified" "adjustresize" "adjustpan"]> interaction mode between activity main window and keypad, since API Level 3 was introduced
Activity attribute settings