Android Guides | Samples

Android.Graphics.Drawables.DrawableContainer Class

A helper class that contains several Drawables and selects which one to use.

See Also: DrawableContainer

Syntax

[Android.Runtime.Register("android/graphics/drawable/DrawableContainer", DoNotGenerateAcw=true)]
public class DrawableContainer : Drawable, Drawable+ICallback, IDisposable

Remarks

A helper class that contains several Drawables and selects which one to use. You can subclass it to create your own DrawableContainers or directly use one its child classes.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

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

See Also: Drawable

Public Constructors

Protected Constructors

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

Public Properties

[read-only]
override
OpacityInt32. Return the opacity/transparency of this Drawable.

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(Canvas)
Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).
InvalidateDrawable(Drawable)
Called when the drawable needs to be redrawn.
ScheduleDrawable(Drawable, IRunnable, Int64)
A Drawable can call this to schedule the next frame of its animation.
ScheduleDrawable(Drawable, Action, Int64)
SelectDrawable(Int32) : Boolean
override
SetAlpha(Int32)
Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.
override
SetColorFilter(ColorFilter)
Specify an optional color filter for the drawable.
SetEnterFadeDuration(Int32)
Change the global fade duration when a new drawable is entering the scene.
SetExitFadeDuration(Int32)
Change the global fade duration when a new drawable is leaving the scene.
UnscheduleDrawable(Drawable, IRunnable)
A Drawable can call this to unschedule an action previously scheduled with ICallback.
UnscheduleDrawable(Drawable, Action)

Protected Methods