Language

Resource.Drawable Class

Definition

Provides identifiers for platform drawable resources.

[Android.Runtime.Register("android/R$drawable", DoNotGenerateAcw=true)]
public sealed class Resource.Drawable : Java.Lang.Object
[<Android.Runtime.Register("android/R$drawable", DoNotGenerateAcw=true)>]
type Resource.Drawable = class
    inherit Object
Inheritance
Resource.Drawable
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.Drawable()

Creates a new instance of the drawable resource identifiers class.

Fields

Name Description
AlertDarkFrame

Drawable alias for the platform's popup_full_dark background.

AlertLightFrame

Drawable alias for the platform's popup_full_bright background.

ArrowDownFloat

Icon drawable showing a downward-pointing arrow.

ArrowUpFloat

Icon drawable showing an upward-pointing arrow.

BottomBar

Bitmap drawable showing a horizontal shaded bar.

ButtonDefault

Button background selector with normal, pressed, focused, disabled, and window-focus states.

ButtonDefaultSmall

Small-button background selector with normal, pressed, focused, disabled, and window-focus states.

ButtonDialog

Dialog-button background selector with normal, pressed, disabled, and focus-dependent entries.

ButtonDropDown

Drop-down button background selector with pressed, focused, disabled, and window-focus entries.

ButtonMinus

Minus-button drawable selector with separate pressed, focused, and disabled images.

ButtonOnoffIndicatorOff

Bitmap drawable showing a gray horizontal on/off indicator.

ButtonOnoffIndicatorOn

Bitmap drawable showing a green horizontal on/off indicator.

ButtonPlus

Plus-button drawable selector with separate pressed, focused, and disabled images.

ButtonRadio

Radio-button drawable selector with checked and unchecked images for normal, pressed, and focused states.

ButtonStar

Star-button drawable selector with checked, unchecked, pressed, focused, and disabled entries.

ButtonStarBigOff

Button icon drawable showing an unfilled star.

ButtonStarBigOn

Button icon drawable showing a gold-filled star.

CheckboxOffBackground

Bitmap drawable showing an unchecked square box.

CheckboxOnBackground

Bitmap drawable showing a square box with a green check mark.

DarkHeader

Drawable to use as a background for separators on a list with a dark background

DialogFrame

Drawable alias for the platform's panel_background resource.

DialogHoloDarkFrame

Drawable alias for the platform's dialog_full_holo_dark resource.

DialogHoloLightFrame

Drawable alias for the platform's dialog_full_holo_light resource.

DividerHorizontalBright

Nine-patch divider drawable with a translucent black center pixel.

DividerHorizontalDark

Nine-patch divider drawable with a translucent white center pixel.

DividerHorizontalDimDark

Nine-patch divider drawable with a lower-opacity white center pixel than the dark divider.

DividerHorizontalTextfield

Nine-patch divider drawable with a translucent black horizontal line.

EditBoxBackground

Edit-box background selector with separate focused and normal images.

EditBoxBackgroundNormal

Nine-patch drawable showing an edit-box frame.

EditBoxDropDownDarkFrame

Drawable alias for the platform's editbox_dropdown_background_dark resource.

EditBoxDropDownLightFrame

Drawable alias for the platform's editbox_dropdown_background resource.

EditText

Text-field background selector with enabled, disabled, focused, and window-focus entries.

GalleryThumb

Gallery-thumbnail frame selector with normal, focused, and pressed images.

IcButtonSpeakNow

Icon drawable showing a microphone.

IcDelete

Icon drawable showing a red cross.

IcDialogAlert

Dialog icon drawable showing a warning triangle.

IcDialogDialer

Dialog icon drawable showing a telephone keypad.

IcDialogEmail

Dialog icon drawable showing an envelope.

IcDialogInfo

Dialog icon drawable showing an information symbol inside a circle.

IcDialogMap

Dialog icon drawable showing a folded map.

IcInputAdd

Icon drawable showing a green plus sign.

IcInputDelete

Icon drawable showing a backspace-shaped key with a cross.

IcInputGet

Icon drawable showing a clipboard.

IcLockIdleAlarm

Bitmap drawable that tints the platform alarm image with the theme's normal control color.

IcLockIdleCharging

Icon drawable showing a power-connector symbol.

IcLockIdleLock

Icon drawable showing a closed padlock.

IcLockIdleLowBattery

Icon drawable showing a lightning bolt inside a warning triangle.

IcLockLock

Bitmap drawable that tints the platform lock image with the theme's activated control color.

IcLockPowerOff

Power-symbol vector drawable with a 24dp size and the theme's normal control tint.

IcLockSilentMode

Icon drawable showing a speaker with a cross.

IcLockSilentModeOff

Icon drawable showing a speaker with sound waves.

IcMediaFf

Media icon drawable showing two right-pointing triangles.

IcMediaNext

Media icon drawable showing a right-pointing triangle followed by a vertical bar.

IcMediaPause

Media icon drawable showing two vertical bars.

IcMediaPlay

Media icon drawable showing a right-pointing triangle.

IcMediaPrevious

Media icon drawable showing a vertical bar followed by a left-pointing triangle.

IcMediaRew

Media icon drawable showing two left-pointing triangles.

IcMenuAdd

Menu icon drawable showing a plus sign inside a circle.

IcMenuAgenda

Menu icon drawable showing a calendar and a list.

IcMenuAlwaysLandscapePortrait

Menu icon drawable showing a tilted device with rotation arrows.

IcMenuCall

Menu icon drawable showing a telephone handset.

IcMenuCamera

Menu icon drawable showing a camera.

IcMenuCloseClearCancel

Menu icon drawable showing a cross.

IcMenuCompass

Menu icon drawable showing a compass rose.

IcMenuCrop

Menu icon drawable showing overlapping crop corners.

IcMenuDay

Menu icon drawable showing a calendar page with the number one.

IcMenuDelete

Menu icon drawable showing a wastebasket.

IcMenuDirections

Menu icon drawable showing a turning arrow inside a diamond.

IcMenuEdit

Menu icon drawable showing a pencil.

IcMenuGallery

Menu icon drawable showing a framed landscape image.

IcMenuHelp

Menu icon drawable showing a question mark.

IcMenuInfoDetails

Menu icon drawable showing an information symbol inside a circle.

IcMenuManage

Menu icon drawable showing a wrench.

IcMenuMapmode

Menu icon drawable showing a world map.

IcMenuMonth

Menu icon drawable showing a calendar page with the number 31.

IcMenuMore

Menu icon drawable showing a downward-pointing triangle inside a circle.

IcMenuMyCalendar

Menu icon drawable showing a calendar with a person symbol.

IcMenuMyLocation

Menu icon drawable showing a circular location target.

IcMenuMyPlaces

Menu icon drawable showing a person beside a flag.

IcMenuPreferences

Menu icon drawable showing a wrench.

IcMenuRecentHistory

Menu icon drawable showing a clock.

IcMenuReportImage

Menu icon drawable showing an image with a warning triangle.

IcMenuRevert

Menu icon drawable showing a curved left-pointing arrow.

IcMenuRotate

Menu icon drawable showing a circular arrow.

IcMenuSave

Menu icon drawable showing a diskette.

IcMenuSearch

Menu icon drawable showing a magnifying glass.

IcMenuSend

Menu icon drawable showing a paper-plane shape.

IcMenuSetAs

Menu icon drawable showing an arrow leaving a square.

IcMenuShare

Menu icon drawable showing three connected circles.

IcMenuSlideshow

Menu icon drawable showing a play symbol inside a frame.

IcMenuSortAlphabetically

Menu icon drawable showing the letters a and z with a downward arrow.

IcMenuSortBySize

Menu icon drawable showing three horizontal bars of decreasing length.

IcMenuToday

Menu icon drawable showing a calendar grid with one marked day.

IcMenuUpload

Menu icon drawable showing an upward arrow above a tray.

IcMenuUploadYouTube

Menu icon drawable showing an upward arrow above a horizontal base.

IcMenuView

Menu icon drawable showing an eye.

IcMenuWeek

Menu icon drawable showing a calendar page with the number seven.

IcMenuZoom

Menu icon drawable showing a magnifying glass with a plus sign.

IcNotificationClearAll

Notification icon drawable showing a cross inside a circle.

IcNotificationOverlay

Nine-patch drawable containing a red circular notification badge.

IcPartialSecure

Icon drawable showing an open padlock.

IcPopupDiskFull

Popup icon drawable showing a storage device with a warning triangle.

IcPopupReminder

Popup icon drawable showing a bell.

IcPopupSync

Repeating synchronization drawable animation with six frames of 200 milliseconds each.

IcSearchCategoryDefault

Icon drawable showing a magnifying glass with a dark rim.

IcSecure

Icon drawable showing a closed black padlock.

ListSelectorBackground

List-selection drawable with focus, pressed, and disabled entries that is transparent when its window is unfocused.

MenuFrame

Drawable alias for the platform's menu_background resource.

MenuFullFrame

Drawable alias for the platform's menu_background_fill_parent_width resource.

MenuitemBackground

Menu-item background selector with pressed and focused images.

PictureFrame

Nine-patch drawable showing a picture frame.

PresenceAudioAway

Audio-presence icon drawable showing an orange microphone.

PresenceAudioBusy

Audio-presence icon drawable showing a red microphone.

PresenceAudioOnline

Audio-presence icon drawable showing a green microphone.

PresenceAway

Presence icon drawable showing an orange clock.

PresenceBusy

Presence icon drawable showing a red circle with a white horizontal bar.

PresenceInvisible

Presence icon drawable showing a gray circle.

PresenceOffline

Presence icon drawable showing a gray circle with a cross.

PresenceOnline

Presence icon drawable showing a green circle.

PresenceVideoAway

presence drawables for videochat or audiochat capable contacts

PresenceVideoBusy

Video-presence icon drawable showing a red camera.

PresenceVideoOnline

Video-presence icon drawable showing a green camera.

ProgressHorizontal

Layered progress drawable with background, secondary-progress, and primary-progress layers and rounded corners.

ProgressIndeterminateHorizontal

Repeating horizontal-progress drawable animation with three frames of 200 milliseconds each.

RadiobuttonOffBackground

Bitmap drawable showing an unselected circular radio button.

RadiobuttonOnBackground

Bitmap drawable showing a circular radio button with a central selection mark.

ScreenBackgroundDark

Drawable resource whose base-platform color is opaque black.

ScreenBackgroundDarkTransparent

Semi-transparent background that can be used when placing a dark themed UI on top of some arbitrary background (such as the wallpaper).

ScreenBackgroundLight

Drawable resource whose base-platform color is opaque white.

ScreenBackgroundLightTransparent

Background drawable that can be used for a transparent activity to be able to display a light UI: this lightens its background to make a light UI more visible.

SpinnerBackground

Spinner background selector with normal, pressed, and focused images.

SpinnerDropDownBackground

Spinner drop-down background selector that changes its image when displayed above its anchor.

StarBigOff

Icon drawable showing a large unfilled star.

StarBigOn

Icon drawable showing a large gold-filled star.

StarOff

Icon drawable showing a small gray star.

StarOn

Icon drawable showing a small gold-filled star.

StatNotifyCallMute

White 18dp vector status icon showing a microphone crossed by a diagonal line.

StatNotifyChat

Notification icon drawable showing a speech bubble with text lines.

StatNotifyError

Notification icon drawable showing a warning triangle.

StatNotifyMissedCall

Notification icon drawable showing a handset beneath a downward-pointing chevron.

StatNotifyMore

Notification icon drawable showing a plus sign inside a tag shape.

StatNotifySdCard

Notification icon drawable showing a memory card.

StatNotifySdcardPrepare

Notification icon drawable showing a memory card with a gear.

StatNotifySdCardUsb

Notification icon drawable showing a memory card with an exclamation mark.

StatNotifySync

Notification icon drawable showing two arrows forming a circle.

StatNotifySyncNoAnim

Drawable alias for the platform's stat_notify_sync_anim0 resource.

StatNotifyVoicemail

Notification icon drawable showing the two-circle voicemail symbol.

StatSysDataBluetooth

Status icon drawable showing the Bluetooth symbol.

StatSysDownload

Repeating download-status drawable animation with six frames of 200 milliseconds each.

StatSysDownloadDone

Drawable alias for the platform's static download-complete image.

StatSysHeadset

Status icon drawable showing a headset.

StatSysPhoneCall
Obsolete.

Status icon drawable showing a green telephone handset.

StatSysPhoneCallForward
Obsolete.

Status icon drawable showing a blue handset with a forwarding arrow.

StatSysPhoneCallOnHold
Obsolete.

Status icon drawable showing an orange handset with pause bars.

StatSysSpeakerphone

White 18dp vector status icon showing a handset and sound-wave arcs.

StatSysUpload

Repeating upload-status drawable animation with six frames of 200 milliseconds each.

StatSysUploadDone

Drawable alias for the first frame of the platform's upload-status animation.

StatSysVpPhoneCall
Obsolete.

Status icon drawable showing a green handset and a padlock.

StatSysVpPhoneCallOnHold
Obsolete.

Status icon drawable showing an orange handset and a padlock.

StatSysWarning

Status icon drawable showing a warning triangle.

StatusBarItemAppBackground

Status-bar application-item background selector with pressed, focused, and normal images.

StatusBarItemBackground

Status-bar item background selector with pressed, focused, and normal images.

SymActionCall

Action icon drawable showing a green telephone handset.

SymActionChat

Action icon drawable showing a speech bubble.

SymActionEmail

Action icon drawable showing an envelope.

SymCallIncoming

Call icon drawable showing a handset with a blue incoming arrow.

SymCallMissed

Call icon drawable showing a handset with a red bent arrow.

SymCallOutgoing

Call icon drawable showing a handset with a green outgoing arrow.

SymContactCard

Icon drawable showing a small folder with two square marks.

SymDefAppIcon

Adaptive application icon with a platform background and a bitmap foreground.

TitleBar

Nine-patch drawable that wraps the platform activity-title-bar image with dithering enabled.

TitleBarTall

Drawable to use as a background for a taller version of the titlebar

ToastFrame

Rounded rectangular drawable using the theme's surface color and a 28dp corner radius.

ZoomPlate

Nine-patch drawable showing a shaded rounded panel.

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

Gets the state flags last assigned by the runtime.

(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)

Delegates construction of this peer to the runtime's value manager.

(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()

Asks the value manager to dispose this peer unless its mapping retains this same managed instance.

(Inherited from JavaObject)
Equals(Object)

Tests whether another managed peer refers to the same Java 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)

Stores a reference value in the control block without creating a JNI reference copy.

(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()

Marks this peer as disposed and calls Dispose with disposing set to true.

(Inherited from JavaObject)
IJavaPeerable.Finalized()

Marks this peer as disposed and calls Dispose with disposing set to false.

(Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

Gets the native control-block pointer used by this peer.

(Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Stores the identity hash code supplied by the runtime.

(Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Replaces the stored managed peer state flags.

(Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

Updates the peer reference and releases a disposed peer's control block when the reference is invalid.

(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)

Reuses a compatible managed peer or obtains a wrapper of the requested type.

TryJavaCast<TResult>(IJavaPeerable, TResult)

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

Applies to