Language

ActivityColorMode Enum

Definition

public enum ActivityColorMode
type ActivityColorMode = 
Inheritance
ActivityColorMode

Fields

Name Value Description
Default 0

Value for colorMode indicating that the activity should use the default color mode (sRGB, low dynamic range).

Android reference for android.content.pm.ActivityInfo.COLOR_MODE_DEFAULT.

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.

WideColorGamut 1

Value of colorMode indicating that the activity should use a wide color gamut if the presentation display supports it.

Android reference for android.content.pm.ActivityInfo.COLOR_MODE_WIDE_COLOR_GAMUT.

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.

Hdr 2

Value of colorMode indicating that the activity should use a high dynamic range if the presentation display supports it. Note: This does not impact SurfaceViews or SurfaceControls, as those have their own independent HDR support.

Important: Although this value was added in API 26, it is strongly recommended to avoid using it until API 34 which is when HDR support for the UI toolkit was officially added.

Android reference for android.content.pm.ActivityInfo.COLOR_MODE_HDR.

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.

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.

Applies to