Class AndroidMainActivityConstants
Provides the values a head's main activity attribute takes: its label, theme, launch mode and the configuration changes it handles itself.
public static class AndroidMainActivityConstants
- Inheritance
-
AndroidMainActivityConstants
- Inherited Members
Fields
ConfigChanges
The configuration changes the activity handles itself rather than being made again: orientation, screen size, layout direction, keyboard, font scale, locale, navigation and UI mode.
public const ConfigChanges ConfigChanges = Locale | Keyboard | KeyboardHidden | Navigation | Orientation | UiMode | ScreenSize | LayoutDirection | FontScale
Field Value
Exported
Whether other apps may start the activity: yes, as the launcher does.
public const bool Exported = true
Field Value
Label
The activity's label: the app's name.
public const string? Label = "@string/app_name"
Field Value
LaunchMode
The launch mode: single top, so an intent for the main activity while it is on top of its task goes to it rather than to a second one stacked over it.
public const LaunchMode LaunchMode = SingleTop
Field Value
Remarks
Not single task, as reopening the app would clear the ad activity above it; nor single instance, which keeps the activity in a task of its own.
ScreenOrientation
The screen's orientation: unspecified, as a TV needs; a UI that keeps a phone upright asks for it at run time.
public const ScreenOrientation ScreenOrientation = Unspecified
Field Value
Theme
The activity's theme: the platform's own, for an activity that asks for nothing else; a head whose UI needs another names that one instead.
public const string? Theme = "@android:style/Theme.DeviceDefault.NoActionBar"
Field Value
WindowSoftInputMode
The window's soft input mode: it resizes when the keyboard shows.
public const SoftInput WindowSoftInputMode = AdjustResize