Android.Graphics.Drawables.LayerDrawable Members

The members of Android.Graphics.Drawables.LayerDrawable are listed below.

See Also: Inherited members from Android.Graphics.Drawables.Drawable

Public Constructors

Create a new layer drawable with the list of specified layers.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
PaddingModeNestLayerDrawablePaddingMode (0). Padding mode used to nest each layer inside the padding of the previous layer.
const
PaddingModeStackLayerDrawablePaddingMode (1). Padding mode used to stack each layer directly atop the previous layer.

Public Properties

[read-only]
NumberOfLayersint. Returns the number of layers contained within this.
[read-only]
override
Opacityint. Return the opacity/transparency of this Drawable.
PaddingModeint.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
Draw(Android.Graphics.Canvas)
Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).
FindDrawableByLayerId(int) : Drawable
Looks for a layer with the given ID and returns its Android.Graphics.Drawables.Drawable.
GetDrawable(int) : Drawable
Returns the drawable at the specified layer index.
GetId(int) : int
Returns the id of the specified layer.
InvalidateDrawable(Drawable)
Called when the drawable needs to be redrawn.
ScheduleDrawable(Drawable, Java.Lang.IRunnable, long)
A Drawable can call this to schedule the next frame of its animation.
ScheduleDrawable(Drawable, Action, long)
Documentation for this section has not yet been entered.
override
SetAlpha(int)
Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.
override
SetColorFilter(Android.Graphics.ColorFilter)
Specify an optional color filter for the drawable.
SetDrawableByLayerId(int, Drawable) : bool
Sets (or replaces) the Android.Graphics.Drawables.Drawable for the layer with the given id.
SetId(int, int)
Sets the ID of a layer.
SetLayerInset(int, int, int, int, int)
Specifies the insets in pixels for the drawable at the specified index.
SetOpacity(int)
Sets the opacity of this drawable directly, instead of collecting the states from the layers
UnscheduleDrawable(Drawable, Java.Lang.IRunnable)
A Drawable can call this to unschedule an action previously scheduled with NoType:android/graphics/drawable/Drawable$Callback;Href=../../../../reference/android/graphics/drawable/Drawable.Callback.html#scheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable, long).
UnscheduleDrawable(Drawable, Action)
Documentation for this section has not yet been entered.