Sdílet prostřednictvím


ActivityAttribute Class

Definition

Generates a /manifest/application/activity element within AndroidManifest.xml.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public sealed class ActivityAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type ActivityAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute
Inheritance
ActivityAttribute
Attributes
Implements

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

ActivityAttribute()

Constructs and initializes a new ActivityAttribute instance.

Properties

AllowEmbedded
AllowTaskReparenting

Whether or not the activity can move from the tasdk that started it to the task it has an affinity for.

AlwaysRetainTaskState

Whether or not the state of the task that the activity is in will always be maintained by the system.

AutoRemoveFromRecents
Banner
ClearTaskOnLaunch

Whether or not all activities will be removed from the task, except for the root activity, whenever it is re-launched from the home screen.

ColorMode
ConfigurationChanges

The configuration changes that the activity will handle itself.

Description
DirectBootAware
DocumentLaunchMode
Enabled

Whether or not the activity can be instantiated by the system.

EnableVrMode
ExcludeFromRecents

Whether or not the activity should be excluded from the list of recently launched activities.

Exported

Whether or not the activity can be launched by components of other applications.

FinishOnCloseSystemDialogs
FinishOnTaskLaunch

Whether or not an existing instance of the activity should be shut down whenever the user again launches its task.

HardwareAccelerated
Icon

An icon representing the activity.

Immersive
Label

A user-readable label for the activity.

LaunchMode

How the activity should be launched.

LayoutDirection
LockTaskMode
Logo
MainLauncher

Whether or not the activity should be the main launcher for an application.

MaxAspectRatio
MaxRecents
MultiProcess

Whether an instance of the activity can be launched into the process of the component that started it.

Name

The name of the class that implements the activity.

NoHistory

Whether or not the activity should be removed from the activity stack and finished when the user navigates away.

ParentActivity
Permission

The name of a permission that clients must have to launch the activity.

PersistableMode
Process

The name of the process in which the activity should run.

RecreateOnConfigChanges
RelinquishTaskIdentity
ResizeableActivity
ResumeWhilePausing
RotationAnimation
RoundIcon
ScreenOrientation

The orientation of the activity's display on the device.

ShowForAllUsers
ShowOnLockScreen
ShowWhenLocked
SingleUser
StateNotNeeded

Whether or not the activity can be killed and successfully restarted without having saved its state.

SupportsPictureInPicture
TaskAffinity

The task that the activity has an affinity for.

Theme

A reference to a style resource defining an overall theme for the activity.

TurnScreenOn
UiOptions
VisibleToInstantApps
WindowSoftInputMode

How the main window of the activity interacts with the window containing hte on-screen soft keyboard.

Applies to