Resource.Color Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides identifiers for platform color resources.
[Android.Runtime.Register("android/R$color", DoNotGenerateAcw=true)]
public sealed class Resource.Color : Java.Lang.Object
[<Android.Runtime.Register("android/R$color", DoNotGenerateAcw=true)>]
type Resource.Color = class
inherit Object
- Inheritance
- Attributes
Remarks
Android platform documentation
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
| Name | Description |
|---|---|
| Resource.Color() | |
Fields
| Name | Description |
|---|---|
| BackgroundDark | |
| BackgroundLight | |
| Black | |
| DarkerGray | |
| HoloBlueBright |
A really bright Holo shade of blue |
| HoloBlueDark |
A dark Holo shade of blue |
| HoloBlueLight |
A light Holo shade of blue |
| HoloGreenDark |
A dark Holo shade of green |
| HoloGreenLight |
A light Holo shade of green |
| HoloOrangeDark |
A dark Holo shade of orange |
| HoloOrangeLight |
A light Holo shade of orange |
| HoloPurple |
A Holo shade of purple |
| HoloRedDark |
A dark Holo shade of red |
| HoloRedLight |
A light Holo shade of red |
| PrimaryTextDark | |
| PrimaryTextDarkNoDisable | |
| PrimaryTextLight | |
| PrimaryTextLightNoDisable | |
| SecondaryTextDark | |
| SecondaryTextDarkNoDisable | |
| SecondaryTextLight | |
| SecondaryTextLightNoDisable | |
| SystemAccent10 |
Identifies the platform color resource named |
| SystemAccent110 |
Identifies the platform color resource named |
| SystemAccent1100 |
Identifies the platform color resource named |
| SystemAccent11000 |
Identifies the platform color resource named |
| SystemAccent1200 |
Identifies the platform color resource named |
| SystemAccent1300 |
Identifies the platform color resource named |
| SystemAccent1400 |
Identifies the platform color resource named |
| SystemAccent150 |
Identifies the platform color resource named |
| SystemAccent1500 |
Identifies the platform color resource named |
| SystemAccent1600 |
Identifies the platform color resource named |
| SystemAccent1700 |
Identifies the platform color resource named |
| SystemAccent1800 |
Identifies the platform color resource named |
| SystemAccent1900 |
Identifies the platform color resource named |
| SystemAccent20 |
Identifies the platform color resource named |
| SystemAccent210 |
Identifies the platform color resource named |
| SystemAccent2100 |
Identifies the platform color resource named |
| SystemAccent21000 |
Identifies the platform color resource named |
| SystemAccent2200 |
Identifies the platform color resource named |
| SystemAccent2300 |
Identifies the platform color resource named |
| SystemAccent2400 |
Identifies the platform color resource named |
| SystemAccent250 |
Identifies the platform color resource named |
| SystemAccent2500 |
Identifies the platform color resource named |
| SystemAccent2600 |
Identifies the platform color resource named |
| SystemAccent2700 |
Identifies the platform color resource named |
| SystemAccent2800 |
Identifies the platform color resource named |
| SystemAccent2900 |
Identifies the platform color resource named |
| SystemAccent30 |
Identifies the platform color resource named |
| SystemAccent310 |
Identifies the platform color resource named |
| SystemAccent3100 |
Identifies the platform color resource named |
| SystemAccent31000 |
Identifies the platform color resource named |
| SystemAccent3200 |
Identifies the platform color resource named |
| SystemAccent3300 |
Identifies the platform color resource named |
| SystemAccent3400 |
Identifies the platform color resource named |
| SystemAccent350 |
Identifies the platform color resource named |
| SystemAccent3500 |
Identifies the platform color resource named |
| SystemAccent3600 |
Identifies the platform color resource named |
| SystemAccent3700 |
Identifies the platform color resource named |
| SystemAccent3800 |
Identifies the platform color resource named |
| SystemAccent3900 |
Identifies the platform color resource named |
| SystemBackgroundDark |
Identifies the platform color resource named |
| SystemBackgroundLight |
Identifies the platform color resource named |
| SystemControlActivatedDark |
Identifies the platform color resource named |
| SystemControlActivatedLight |
Identifies the platform color resource named |
| SystemControlHighlightDark |
Identifies the platform color resource named |
| SystemControlHighlightLight |
Identifies the platform color resource named |
| SystemControlNormalDark |
Identifies the platform color resource named |
| SystemControlNormalLight |
Identifies the platform color resource named |
| SystemError0 |
Identifies the platform color resource named |
| SystemError10 |
Identifies the platform color resource named |
| SystemError100 |
Identifies the platform color resource named |
| SystemError1000 |
Identifies the platform color resource named |
| SystemError200 |
Identifies the platform color resource named |
| SystemError300 |
Identifies the platform color resource named |
| SystemError400 |
Identifies the platform color resource named |
| SystemError50 |
Identifies the platform color resource named |
| SystemError500 |
Identifies the platform color resource named |
| SystemError600 |
Identifies the platform color resource named |
| SystemError700 |
Identifies the platform color resource named |
| SystemError800 |
Identifies the platform color resource named |
| SystemError900 |
Identifies the platform color resource named |
| SystemErrorContainerDark |
Identifies the platform color resource named |
| SystemErrorContainerLight |
Identifies the platform color resource named |
| SystemErrorDark |
Identifies the platform color resource named |
| SystemErrorDimDark |
Wear only: High emphasis fill color indicating errors or destructive actions in dark mode. |
| SystemErrorDimLight |
Wear only: High emphasis fill color indicating errors or destructive actions in light mode. |
| SystemErrorLight |
Identifies the platform color resource named |
| SystemInverseOnSurfaceDark |
Text/icon color for inverted components like snack bars in dark mode. |
| SystemInverseOnSurfaceLight |
Text/icon color for inverted components like snack bars in light mode. |
| SystemInversePrimaryDark |
Text/icon accent color for actions on inverted components like snack bars in dark mode. |
| SystemInversePrimaryLight |
Text/icon accent color for actions on inverted components like snack bars in light mode. |
| SystemInverseSurfaceDark |
Fill color for inverted components like snack bars in dark mode. |
| SystemInverseSurfaceLight |
Fill color for inverted components like snack bars in light mode. |
| SystemNeutral10 |
Identifies the platform color resource named |
| SystemNeutral110 |
Identifies the platform color resource named |
| SystemNeutral1100 |
Identifies the platform color resource named |
| SystemNeutral11000 |
Identifies the platform color resource named |
| SystemNeutral1200 |
Identifies the platform color resource named |
| SystemNeutral1300 |
Identifies the platform color resource named |
| SystemNeutral1400 |
Identifies the platform color resource named |
| SystemNeutral150 |
Identifies the platform color resource named |
| SystemNeutral1500 |
Identifies the platform color resource named |
| SystemNeutral1600 |
Identifies the platform color resource named |
| SystemNeutral1700 |
Identifies the platform color resource named |
| SystemNeutral1800 |
Identifies the platform color resource named |
| SystemNeutral1900 |
Identifies the platform color resource named |
| SystemNeutral20 |
Identifies the platform color resource named |
| SystemNeutral210 |
Identifies the platform color resource named |
| SystemNeutral2100 |
Identifies the platform color resource named |
| SystemNeutral21000 |
Identifies the platform color resource named |
| SystemNeutral2200 |
Identifies the platform color resource named |
| SystemNeutral2300 |
Identifies the platform color resource named |
| SystemNeutral2400 |
Identifies the platform color resource named |
| SystemNeutral250 |
Identifies the platform color resource named |
| SystemNeutral2500 |
Identifies the platform color resource named |
| SystemNeutral2600 |
Identifies the platform color resource named |
| SystemNeutral2700 |
Identifies the platform color resource named |
| SystemNeutral2800 |
Identifies the platform color resource named |
| SystemNeutral2900 |
Identifies the platform color resource named |
| SystemOnBackgroundDark |
Identifies the platform color resource named |
| SystemOnBackgroundLight |
Identifies the platform color resource named |
| SystemOnErrorContainerDark |
Identifies the platform color resource named |
| SystemOnErrorContainerLight |
Identifies the platform color resource named |
| SystemOnErrorDark |
Identifies the platform color resource named |
| SystemOnErrorLight |
Identifies the platform color resource named |
| SystemOnPrimaryContainerDark |
Identifies the platform color resource named |
| SystemOnPrimaryContainerLight |
Identifies the platform color resource named |
| SystemOnPrimaryDark |
Identifies the platform color resource named |
| SystemOnPrimaryFixed |
Identifies the platform color resource named |
| SystemOnPrimaryFixedDark |
Higher emphasis text/icon color against Primary Fixed in dark mode. |
| SystemOnPrimaryFixedLight |
Higher emphasis text/icon color against Primary Fixed in light mode. |
| SystemOnPrimaryFixedVariant |
Identifies the platform color resource named |
| SystemOnPrimaryFixedVariantDark |
Lower emphasis text/icon color against Primary Fixed in dark mode. |
| SystemOnPrimaryFixedVariantLight |
Lower emphasis text/icon color against Primary Fixed in light mode. |
| SystemOnPrimaryLight |
Identifies the platform color resource named |
| SystemOnSecondaryContainerDark |
Identifies the platform color resource named |
| SystemOnSecondaryContainerLight |
Identifies the platform color resource named |
| SystemOnSecondaryDark |
Identifies the platform color resource named |
| SystemOnSecondaryFixed |
Identifies the platform color resource named |
| SystemOnSecondaryFixedDark |
Higher emphasis text/icon color against Secondary Fixed in dark mode. |
| SystemOnSecondaryFixedLight |
Higher emphasis text/icon color against Secondary Fixed in light mode. |
| SystemOnSecondaryFixedVariant |
Identifies the platform color resource named |
| SystemOnSecondaryFixedVariantDark |
Lower emphasis text/icon color against Secondary Fixed in dark mode. |
| SystemOnSecondaryFixedVariantLight |
Lower emphasis text/icon color against Secondary Fixed in light mode. |
| SystemOnSecondaryLight |
Identifies the platform color resource named |
| SystemOnSurfaceDark |
Identifies the platform color resource named |
| SystemOnSurfaceDisabled |
Identifies the platform color resource named |
| SystemOnSurfaceLight |
Identifies the platform color resource named |
| SystemOnSurfaceVariantDark |
Identifies the platform color resource named |
| SystemOnSurfaceVariantLight |
Identifies the platform color resource named |
| SystemOnTertiaryContainerDark |
Identifies the platform color resource named |
| SystemOnTertiaryContainerLight |
Identifies the platform color resource named |
| SystemOnTertiaryDark |
Identifies the platform color resource named |
| SystemOnTertiaryFixed |
Identifies the platform color resource named |
| SystemOnTertiaryFixedDark |
Higher emphasis text/icon color against Tertiary Fixed in dark mode. |
| SystemOnTertiaryFixedLight |
Higher emphasis text/icon color against Tertiary Fixed in light mode. |
| SystemOnTertiaryFixedVariant |
Identifies the platform color resource named |
| SystemOnTertiaryFixedVariantDark |
Lower emphasis text/icon color against Tertiary Fixed in dark mode. |
| SystemOnTertiaryFixedVariantLight |
Lower emphasis text/icon color against Tertiary Fixed in light mode. |
| SystemOnTertiaryLight |
Identifies the platform color resource named |
| SystemOutlineDark |
Identifies the platform color resource named |
| SystemOutlineDisabled |
Identifies the platform color resource named |
| SystemOutlineLight |
Identifies the platform color resource named |
| SystemOutlineVariantDark |
Identifies the platform color resource named |
| SystemOutlineVariantLight |
Identifies the platform color resource named |
| SystemPaletteKeyColorErrorDark |
Color whose hue and chroma are used to create Error palette and related tokens in dark mode. |
| SystemPaletteKeyColorErrorLight |
Color whose hue and chroma are used to create Error palette and related tokens in light mode. |
| SystemPaletteKeyColorNeutralDark |
Identifies the platform color resource named |
| SystemPaletteKeyColorNeutralLight |
Identifies the platform color resource named |
| SystemPaletteKeyColorNeutralVariantDark |
Identifies the platform color resource named |
| SystemPaletteKeyColorNeutralVariantLight |
Identifies the platform color resource named |
| SystemPaletteKeyColorPrimaryDark |
Identifies the platform color resource named |
| SystemPaletteKeyColorPrimaryLight |
Identifies the platform color resource named |
| SystemPaletteKeyColorSecondaryDark |
Identifies the platform color resource named |
| SystemPaletteKeyColorSecondaryLight |
Identifies the platform color resource named |
| SystemPaletteKeyColorTertiaryDark |
Identifies the platform color resource named |
| SystemPaletteKeyColorTertiaryLight |
Identifies the platform color resource named |
| SystemPrimaryContainerDark |
Identifies the platform color resource named |
| SystemPrimaryContainerLight |
Identifies the platform color resource named |
| SystemPrimaryDark |
Identifies the platform color resource named |
| SystemPrimaryDimDark |
Wear only: Fill color for main actions in dark mode. |
| SystemPrimaryDimLight |
Wear only: Fill color for main actions in light mode. |
| SystemPrimaryFixed |
Identifies the platform color resource named |
| SystemPrimaryFixedDark |
Fill color for main actions that stays bright in both light and dark modes in dark mode. |
| SystemPrimaryFixedDim |
Identifies the platform color resource named |
| SystemPrimaryFixedDimDark |
Darkened fill color for main actions that stays bright in both light and dark modes in dark mode. |
| SystemPrimaryFixedDimLight |
Darkened fill color for main actions that stays bright in both light and dark modes in light mode. |
| SystemPrimaryFixedLight |
Fill color for main actions that stays bright in both light and dark modes in light mode. |
| SystemPrimaryLight |
Identifies the platform color resource named |
| SystemScrimDark |
Color for the semi-transparent overlay that dims the background behind modal windows or dialogs in dark mode. |
| SystemScrimLight |
Color for the semi-transparent overlay that dims the background behind modal windows or dialogs in light mode. |
| SystemSecondaryContainerDark |
Identifies the platform color resource named |
| SystemSecondaryContainerLight |
Identifies the platform color resource named |
| SystemSecondaryDark |
Identifies the platform color resource named |
| SystemSecondaryDimDark |
Wear only: Fill color for supporting actions in dark mode. |
| SystemSecondaryDimLight |
Wear only: Fill color for supporting actions in light mode. |
| SystemSecondaryFixed |
Identifies the platform color resource named |
| SystemSecondaryFixedDark |
Fill color for supporting actions that stays bright in both light and dark modes in dark mode. |
| SystemSecondaryFixedDim |
Identifies the platform color resource named |
| SystemSecondaryFixedDimDark |
Darkened fill color for supporting actions that stays bright in both light and dark modes in dark mode. |
| SystemSecondaryFixedDimLight |
Darkened fill color for supporting actions that stays bright in both light and dark modes in light mode. |
| SystemSecondaryFixedLight |
Fill color for supporting actions that stays bright in both light and dark modes in light mode. |
| SystemSecondaryLight |
Identifies the platform color resource named |
| SystemShadowDark |
Base color used for casting elevation shadows under UI elements in dark mode. |
| SystemShadowLight |
Base color used for casting elevation shadows under UI elements in light mode. |
| SystemSurfaceBrightDark |
Identifies the platform color resource named |
| SystemSurfaceBrightLight |
Identifies the platform color resource named |
| SystemSurfaceContainerDark |
Identifies the platform color resource named |
| SystemSurfaceContainerHighDark |
Identifies the platform color resource named |
| SystemSurfaceContainerHighestDark |
Identifies the platform color resource named |
| SystemSurfaceContainerHighestLight |
Identifies the platform color resource named |
| SystemSurfaceContainerHighLight |
Identifies the platform color resource named |
| SystemSurfaceContainerLight |
Identifies the platform color resource named |
| SystemSurfaceContainerLowDark |
Identifies the platform color resource named |
| SystemSurfaceContainerLowestDark |
Identifies the platform color resource named |
| SystemSurfaceContainerLowestLight |
Identifies the platform color resource named |
| SystemSurfaceContainerLowLight |
Identifies the platform color resource named |
| SystemSurfaceDark |
Identifies the platform color resource named |
| SystemSurfaceDimDark |
Identifies the platform color resource named |
| SystemSurfaceDimLight |
Identifies the platform color resource named |
| SystemSurfaceDisabled |
Identifies the platform color resource named |
| SystemSurfaceLight |
Identifies the platform color resource named |
| SystemSurfaceTintDark |
Deprecated background fill color used to create Surface containers in dark mode. |
| SystemSurfaceTintLight |
Deprecated background fill color used to create Surface containers in light mode. |
| SystemSurfaceVariantDark |
Identifies the platform color resource named |
| SystemSurfaceVariantLight |
Identifies the platform color resource named |
| SystemTertiaryContainerDark |
Identifies the platform color resource named |
| SystemTertiaryContainerLight |
Identifies the platform color resource named |
| SystemTertiaryDark |
Identifies the platform color resource named |
| SystemTertiaryDimDark |
Wear only: Fill color for differentiated or special actions like badges in dark mode. |
| SystemTertiaryDimLight |
Wear only: Fill color for differentiated or special actions like badges in light mode. |
| SystemTertiaryFixed |
Identifies the platform color resource named |
| SystemTertiaryFixedDark |
Fill color for differentiated actions that stays bright in both light and dark modes in dark mode. |
| SystemTertiaryFixedDim |
Identifies the platform color resource named |
| SystemTertiaryFixedDimDark |
Darkened fill color for differentiated actions that stays bright in both light and dark modes in dark mode. |
| SystemTertiaryFixedDimLight |
Darkened fill color for differentiated actions that stays bright in both light and dark modes in light mode. |
| SystemTertiaryFixedLight |
Fill color for differentiated actions that stays bright in both light and dark modes in light mode. |
| SystemTertiaryLight |
Identifies the platform color resource named |
| SystemTextHintInverseDark |
Identifies the platform color resource named |
| SystemTextHintInverseLight |
Identifies the platform color resource named |
| SystemTextPrimaryInverseDark |
Identifies the platform color resource named |
| SystemTextPrimaryInverseDisableOnlyDark |
Identifies the platform color resource named |
| SystemTextPrimaryInverseDisableOnlyLight |
Identifies the platform color resource named |
| SystemTextPrimaryInverseLight |
Identifies the platform color resource named |
| SystemTextSecondaryAndTertiaryInverseDark |
Identifies the platform color resource named |
| SystemTextSecondaryAndTertiaryInverseDisabledDark |
Identifies the platform color resource named |
| SystemTextSecondaryAndTertiaryInverseDisabledLight |
Identifies the platform color resource named |
| SystemTextSecondaryAndTertiaryInverseLight |
Identifies the platform color resource named |
| TabIndicatorText | |
| TertiaryTextDark | |
| TertiaryTextLight | |
| Transparent | |
| White | |
| WidgetEditTextDark | |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState | (Inherited from JavaObject) |
| JniPeerMembers |
Provides the JNI peer metadata for this type. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
| ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. (Inherited from Object) |
Methods
| Name | Description |
|---|---|
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| Construct(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() | (Inherited from JavaObject) |
| Equals(Object) | (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() | (Inherited from JavaObject) |
| IJavaPeerable.Finalized() | (Inherited from JavaObject) |
| IJavaPeerable.JniObjectReferenceControlBlock | (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from JavaObject) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |