Resource.Color Class

Definition

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
Resource.Color
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 system_accent1_0.

SystemAccent110

Identifies the platform color resource named system_accent1_10.

SystemAccent1100

Identifies the platform color resource named system_accent1_100.

SystemAccent11000

Identifies the platform color resource named system_accent1_1000.

SystemAccent1200

Identifies the platform color resource named system_accent1_200.

SystemAccent1300

Identifies the platform color resource named system_accent1_300.

SystemAccent1400

Identifies the platform color resource named system_accent1_400.

SystemAccent150

Identifies the platform color resource named system_accent1_50.

SystemAccent1500

Identifies the platform color resource named system_accent1_500.

SystemAccent1600

Identifies the platform color resource named system_accent1_600.

SystemAccent1700

Identifies the platform color resource named system_accent1_700.

SystemAccent1800

Identifies the platform color resource named system_accent1_800.

SystemAccent1900

Identifies the platform color resource named system_accent1_900.

SystemAccent20

Identifies the platform color resource named system_accent2_0.

SystemAccent210

Identifies the platform color resource named system_accent2_10.

SystemAccent2100

Identifies the platform color resource named system_accent2_100.

SystemAccent21000

Identifies the platform color resource named system_accent2_1000.

SystemAccent2200

Identifies the platform color resource named system_accent2_200.

SystemAccent2300

Identifies the platform color resource named system_accent2_300.

SystemAccent2400

Identifies the platform color resource named system_accent2_400.

SystemAccent250

Identifies the platform color resource named system_accent2_50.

SystemAccent2500

Identifies the platform color resource named system_accent2_500.

SystemAccent2600

Identifies the platform color resource named system_accent2_600.

SystemAccent2700

Identifies the platform color resource named system_accent2_700.

SystemAccent2800

Identifies the platform color resource named system_accent2_800.

SystemAccent2900

Identifies the platform color resource named system_accent2_900.

SystemAccent30

Identifies the platform color resource named system_accent3_0.

SystemAccent310

Identifies the platform color resource named system_accent3_10.

SystemAccent3100

Identifies the platform color resource named system_accent3_100.

SystemAccent31000

Identifies the platform color resource named system_accent3_1000.

SystemAccent3200

Identifies the platform color resource named system_accent3_200.

SystemAccent3300

Identifies the platform color resource named system_accent3_300.

SystemAccent3400

Identifies the platform color resource named system_accent3_400.

SystemAccent350

Identifies the platform color resource named system_accent3_50.

SystemAccent3500

Identifies the platform color resource named system_accent3_500.

SystemAccent3600

Identifies the platform color resource named system_accent3_600.

SystemAccent3700

Identifies the platform color resource named system_accent3_700.

SystemAccent3800

Identifies the platform color resource named system_accent3_800.

SystemAccent3900

Identifies the platform color resource named system_accent3_900.

SystemBackgroundDark

Identifies the platform color resource named system_background_dark.

SystemBackgroundLight

Identifies the platform color resource named system_background_light.

SystemControlActivatedDark

Identifies the platform color resource named system_control_activated_dark.

SystemControlActivatedLight

Identifies the platform color resource named system_control_activated_light.

SystemControlHighlightDark

Identifies the platform color resource named system_control_highlight_dark.

SystemControlHighlightLight

Identifies the platform color resource named system_control_highlight_light.

SystemControlNormalDark

Identifies the platform color resource named system_control_normal_dark.

SystemControlNormalLight

Identifies the platform color resource named system_control_normal_light.

SystemError0

Identifies the platform color resource named system_error_0.

SystemError10

Identifies the platform color resource named system_error_10.

SystemError100

Identifies the platform color resource named system_error_100.

SystemError1000

Identifies the platform color resource named system_error_1000.

SystemError200

Identifies the platform color resource named system_error_200.

SystemError300

Identifies the platform color resource named system_error_300.

SystemError400

Identifies the platform color resource named system_error_400.

SystemError50

Identifies the platform color resource named system_error_50.

SystemError500

Identifies the platform color resource named system_error_500.

SystemError600

Identifies the platform color resource named system_error_600.

SystemError700

Identifies the platform color resource named system_error_700.

SystemError800

Identifies the platform color resource named system_error_800.

SystemError900

Identifies the platform color resource named system_error_900.

SystemErrorContainerDark

Identifies the platform color resource named system_error_container_dark.

SystemErrorContainerLight

Identifies the platform color resource named system_error_container_light.

SystemErrorDark

Identifies the platform color resource named system_error_dark.

SystemErrorLight

Identifies the platform color resource named system_error_light.

SystemNeutral10

Identifies the platform color resource named system_neutral1_0.

SystemNeutral110

Identifies the platform color resource named system_neutral1_10.

SystemNeutral1100

Identifies the platform color resource named system_neutral1_100.

SystemNeutral11000

Identifies the platform color resource named system_neutral1_1000.

SystemNeutral1200

Identifies the platform color resource named system_neutral1_200.

SystemNeutral1300

Identifies the platform color resource named system_neutral1_300.

SystemNeutral1400

Identifies the platform color resource named system_neutral1_400.

SystemNeutral150

Identifies the platform color resource named system_neutral1_50.

SystemNeutral1500

Identifies the platform color resource named system_neutral1_500.

SystemNeutral1600

Identifies the platform color resource named system_neutral1_600.

SystemNeutral1700

Identifies the platform color resource named system_neutral1_700.

SystemNeutral1800

Identifies the platform color resource named system_neutral1_800.

SystemNeutral1900

Identifies the platform color resource named system_neutral1_900.

SystemNeutral20

Identifies the platform color resource named system_neutral2_0.

SystemNeutral210

Identifies the platform color resource named system_neutral2_10.

SystemNeutral2100

Identifies the platform color resource named system_neutral2_100.

SystemNeutral21000

Identifies the platform color resource named system_neutral2_1000.

SystemNeutral2200

Identifies the platform color resource named system_neutral2_200.

SystemNeutral2300

Identifies the platform color resource named system_neutral2_300.

SystemNeutral2400

Identifies the platform color resource named system_neutral2_400.

SystemNeutral250

Identifies the platform color resource named system_neutral2_50.

SystemNeutral2500

Identifies the platform color resource named system_neutral2_500.

SystemNeutral2600

Identifies the platform color resource named system_neutral2_600.

SystemNeutral2700

Identifies the platform color resource named system_neutral2_700.

SystemNeutral2800

Identifies the platform color resource named system_neutral2_800.

SystemNeutral2900

Identifies the platform color resource named system_neutral2_900.

SystemOnBackgroundDark

Identifies the platform color resource named system_on_background_dark.

SystemOnBackgroundLight

Identifies the platform color resource named system_on_background_light.

SystemOnErrorContainerDark

Identifies the platform color resource named system_on_error_container_dark.

SystemOnErrorContainerLight

Identifies the platform color resource named system_on_error_container_light.

SystemOnErrorDark

Identifies the platform color resource named system_on_error_dark.

SystemOnErrorLight

Identifies the platform color resource named system_on_error_light.

SystemOnPrimaryContainerDark

Identifies the platform color resource named system_on_primary_container_dark.

SystemOnPrimaryContainerLight

Identifies the platform color resource named system_on_primary_container_light.

SystemOnPrimaryDark

Identifies the platform color resource named system_on_primary_dark.

SystemOnPrimaryFixed

Identifies the platform color resource named system_on_primary_fixed.

SystemOnPrimaryFixedVariant

Identifies the platform color resource named system_on_primary_fixed_variant.

SystemOnPrimaryLight

Identifies the platform color resource named system_on_primary_light.

SystemOnSecondaryContainerDark

Identifies the platform color resource named system_on_secondary_container_dark.

SystemOnSecondaryContainerLight

Identifies the platform color resource named system_on_secondary_container_light.

SystemOnSecondaryDark

Identifies the platform color resource named system_on_secondary_dark.

SystemOnSecondaryFixed

Identifies the platform color resource named system_on_secondary_fixed.

SystemOnSecondaryFixedVariant

Identifies the platform color resource named system_on_secondary_fixed_variant.

SystemOnSecondaryLight

Identifies the platform color resource named system_on_secondary_light.

SystemOnSurfaceDark

Identifies the platform color resource named system_on_surface_dark.

SystemOnSurfaceDisabled

Identifies the platform color resource named system_on_surface_disabled.

SystemOnSurfaceLight

Identifies the platform color resource named system_on_surface_light.

SystemOnSurfaceVariantDark

Identifies the platform color resource named system_on_surface_variant_dark.

SystemOnSurfaceVariantLight

Identifies the platform color resource named system_on_surface_variant_light.

SystemOnTertiaryContainerDark

Identifies the platform color resource named system_on_tertiary_container_dark.

SystemOnTertiaryContainerLight

Identifies the platform color resource named system_on_tertiary_container_light.

SystemOnTertiaryDark

Identifies the platform color resource named system_on_tertiary_dark.

SystemOnTertiaryFixed

Identifies the platform color resource named system_on_tertiary_fixed.

SystemOnTertiaryFixedVariant

Identifies the platform color resource named system_on_tertiary_fixed_variant.

SystemOnTertiaryLight

Identifies the platform color resource named system_on_tertiary_light.

SystemOutlineDark

Identifies the platform color resource named system_outline_dark.

SystemOutlineDisabled

Identifies the platform color resource named system_outline_disabled.

SystemOutlineLight

Identifies the platform color resource named system_outline_light.

SystemOutlineVariantDark

Identifies the platform color resource named system_outline_variant_dark.

SystemOutlineVariantLight

Identifies the platform color resource named system_outline_variant_light.

SystemPaletteKeyColorNeutralDark

Identifies the platform color resource named system_palette_key_color_neutral_dark.

SystemPaletteKeyColorNeutralLight

Identifies the platform color resource named system_palette_key_color_neutral_light.

SystemPaletteKeyColorNeutralVariantDark

Identifies the platform color resource named system_palette_key_color_neutral_variant_dark.

SystemPaletteKeyColorNeutralVariantLight

Identifies the platform color resource named system_palette_key_color_neutral_variant_light.

SystemPaletteKeyColorPrimaryDark

Identifies the platform color resource named system_palette_key_color_primary_dark.

SystemPaletteKeyColorPrimaryLight

Identifies the platform color resource named system_palette_key_color_primary_light.

SystemPaletteKeyColorSecondaryDark

Identifies the platform color resource named system_palette_key_color_secondary_dark.

SystemPaletteKeyColorSecondaryLight

Identifies the platform color resource named system_palette_key_color_secondary_light.

SystemPaletteKeyColorTertiaryDark

Identifies the platform color resource named system_palette_key_color_tertiary_dark.

SystemPaletteKeyColorTertiaryLight

Identifies the platform color resource named system_palette_key_color_tertiary_light.

SystemPrimaryContainerDark

Identifies the platform color resource named system_primary_container_dark.

SystemPrimaryContainerLight

Identifies the platform color resource named system_primary_container_light.

SystemPrimaryDark

Identifies the platform color resource named system_primary_dark.

SystemPrimaryFixed

Identifies the platform color resource named system_primary_fixed.

SystemPrimaryFixedDim

Identifies the platform color resource named system_primary_fixed_dim.

SystemPrimaryLight

Identifies the platform color resource named system_primary_light.

SystemSecondaryContainerDark

Identifies the platform color resource named system_secondary_container_dark.

SystemSecondaryContainerLight

Identifies the platform color resource named system_secondary_container_light.

SystemSecondaryDark

Identifies the platform color resource named system_secondary_dark.

SystemSecondaryFixed

Identifies the platform color resource named system_secondary_fixed.

SystemSecondaryFixedDim

Identifies the platform color resource named system_secondary_fixed_dim.

SystemSecondaryLight

Identifies the platform color resource named system_secondary_light.

SystemSurfaceBrightDark

Identifies the platform color resource named system_surface_bright_dark.

SystemSurfaceBrightLight

Identifies the platform color resource named system_surface_bright_light.

SystemSurfaceContainerDark

Identifies the platform color resource named system_surface_container_dark.

SystemSurfaceContainerHighDark

Identifies the platform color resource named system_surface_container_high_dark.

SystemSurfaceContainerHighestDark

Identifies the platform color resource named system_surface_container_highest_dark.

SystemSurfaceContainerHighestLight

Identifies the platform color resource named system_surface_container_highest_light.

SystemSurfaceContainerHighLight

Identifies the platform color resource named system_surface_container_high_light.

SystemSurfaceContainerLight

Identifies the platform color resource named system_surface_container_light.

SystemSurfaceContainerLowDark

Identifies the platform color resource named system_surface_container_low_dark.

SystemSurfaceContainerLowestDark

Identifies the platform color resource named system_surface_container_lowest_dark.

SystemSurfaceContainerLowestLight

Identifies the platform color resource named system_surface_container_lowest_light.

SystemSurfaceContainerLowLight

Identifies the platform color resource named system_surface_container_low_light.

SystemSurfaceDark

Identifies the platform color resource named system_surface_dark.

SystemSurfaceDimDark

Identifies the platform color resource named system_surface_dim_dark.

SystemSurfaceDimLight

Identifies the platform color resource named system_surface_dim_light.

SystemSurfaceDisabled

Identifies the platform color resource named system_surface_disabled.

SystemSurfaceLight

Identifies the platform color resource named system_surface_light.

SystemSurfaceVariantDark

Identifies the platform color resource named system_surface_variant_dark.

SystemSurfaceVariantLight

Identifies the platform color resource named system_surface_variant_light.

SystemTertiaryContainerDark

Identifies the platform color resource named system_tertiary_container_dark.

SystemTertiaryContainerLight

Identifies the platform color resource named system_tertiary_container_light.

SystemTertiaryDark

Identifies the platform color resource named system_tertiary_dark.

SystemTertiaryFixed

Identifies the platform color resource named system_tertiary_fixed.

SystemTertiaryFixedDim

Identifies the platform color resource named system_tertiary_fixed_dim.

SystemTertiaryLight

Identifies the platform color resource named system_tertiary_light.

SystemTextHintInverseDark

Identifies the platform color resource named system_text_hint_inverse_dark.

SystemTextHintInverseLight

Identifies the platform color resource named system_text_hint_inverse_light.

SystemTextPrimaryInverseDark

Identifies the platform color resource named system_text_primary_inverse_dark.

SystemTextPrimaryInverseDisableOnlyDark

Identifies the platform color resource named system_text_primary_inverse_disable_only_dark.

SystemTextPrimaryInverseDisableOnlyLight

Identifies the platform color resource named system_text_primary_inverse_disable_only_light.

SystemTextPrimaryInverseLight

Identifies the platform color resource named system_text_primary_inverse_light.

SystemTextSecondaryAndTertiaryInverseDark

Identifies the platform color resource named system_text_secondary_and_tertiary_inverse_dark.

SystemTextSecondaryAndTertiaryInverseDisabledDark

Identifies the platform color resource named system_text_secondary_and_tertiary_inverse_disabled_dark.

SystemTextSecondaryAndTertiaryInverseDisabledLight

Identifies the platform color resource named system_text_secondary_and_tertiary_inverse_disabled_light.

SystemTextSecondaryAndTertiaryInverseLight

Identifies the platform color resource named system_text_secondary_and_tertiary_inverse_light.

TabIndicatorText
TertiaryTextDark
TertiaryTextLight
Transparent
White
WidgetEditTextDark

Properties

Name Description
Class

Returns the runtime class of this Object.

(Inherited from Object)
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()

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 self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to