TransitionDrawable TransitionDrawable Class

Definition

An extension of LayerDrawables that is intended to cross-fade between the first and second layer.

[Android.Runtime.Register("android/graphics/drawable/TransitionDrawable", ApiSince=1, DoNotGenerateAcw=true)]
public class TransitionDrawable : Android.Graphics.Drawables.LayerDrawable, IDisposable
type TransitionDrawable = class
    inherit LayerDrawable
    interface Drawable.ICallback
    interface IJavaObject
    interface IDisposable
Inheritance
Attributes
Implements

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

TransitionDrawable(Drawable[]) TransitionDrawable(Drawable[])

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

TransitionDrawable(IntPtr, JniHandleOwnership) TransitionDrawable(IntPtr, JniHandleOwnership)

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

Properties

Alpha Alpha

Gets the current alpha value for the drawable. 0 means fully transparent, 255 means fully opaque.

(Inherited from Drawable)
AutoMirrored AutoMirrored

Tells if this Drawable will be automatically mirrored when its layout direction is RTL right-to-left.

(Inherited from Drawable)
BottomPadding BottomPadding Inherited from LayerDrawable
Bounds Bounds

Return the drawable's bounds Rect.

(Inherited from Drawable)
Callback Callback

Return the current Drawable.ICallback implementation attached to this Drawable.

(Inherited from Drawable)
ChangingConfigurations ChangingConfigurations

Return a mask of the configuration parameters for which this drawable may change, requiring that it be re-created.

(Inherited from Drawable)
Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
ColorFilter ColorFilter

Returns the current color filter, or null if none set.

(Inherited from Drawable)
CrossFadeEnabled CrossFadeEnabled

Indicates whether the cross fade is enabled for this transition.

Current Current Inherited from Drawable
DirtyBounds DirtyBounds

Return the drawable's dirty bounds Rect.

(Inherited from Drawable)
EndPadding EndPadding Inherited from LayerDrawable
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IntrinsicHeight IntrinsicHeight

Return the intrinsic height of the underlying drawable object.

(Inherited from Drawable)
IntrinsicWidth IntrinsicWidth

Return the intrinsic width of the underlying drawable object.

(Inherited from Drawable)
IsFilterBitmap IsFilterBitmap Inherited from Drawable
IsStateful IsStateful

Indicates whether this drawable will change its appearance based on state.

(Inherited from Drawable)
IsVisible IsVisible Inherited from Drawable
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LayoutDirection LayoutDirection Inherited from Drawable
LeftPadding LeftPadding Inherited from LayerDrawable
Level Level

Retrieve the current level.

(Inherited from Drawable)
MinimumHeight MinimumHeight

Returns the minimum height suggested by this Drawable.

(Inherited from Drawable)
MinimumWidth MinimumWidth

Returns the minimum width suggested by this Drawable.

(Inherited from Drawable)
NumberOfLayers NumberOfLayers

Returns the number of layers contained within this layer drawable.

(Inherited from LayerDrawable)
Opacity Opacity

Return the opacity/transparency of this Drawable.

(Inherited from LayerDrawable)
PaddingMode PaddingMode Inherited from LayerDrawable
PeerReference PeerReference Inherited from Object
RightPadding RightPadding Inherited from LayerDrawable
StartPadding StartPadding Inherited from LayerDrawable
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

TopPadding TopPadding Inherited from LayerDrawable
TransparentRegion TransparentRegion

Returns a Region representing the part of the Drawable that is completely transparent.

(Inherited from Drawable)

Methods

AddLayer(Drawable) AddLayer(Drawable) Inherited from LayerDrawable
ApplyTheme(Resources+Theme) ApplyTheme(Resources+Theme)

Applies the specified theme to this Drawable and its children.

(Inherited from Drawable)
CanApplyTheme() CanApplyTheme() Inherited from Drawable
ClearColorFilter() ClearColorFilter()

Removes the color filter for this drawable.

(Inherited from Drawable)
Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CopyBounds() CopyBounds()

Return a copy of the drawable's bounds in a new Rect.

(Inherited from Drawable)
CopyBounds(Rect) CopyBounds(Rect)

Return a copy of the drawable's bounds in the specified Rect (allocated by the caller).

(Inherited from Drawable)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Draw(Canvas) Draw(Canvas)

Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).

(Inherited from LayerDrawable)
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FindDrawableByLayerId(Int32) FindDrawableByLayerId(Int32)

Looks for a layer with the given ID and returns its Drawable.

(Inherited from LayerDrawable)
FindIndexByLayerId(Int32) FindIndexByLayerId(Int32) Inherited from LayerDrawable
GetConstantState() GetConstantState()

Drawable ConstantState

(Inherited from Drawable)
GetDrawable(Int32) GetDrawable(Int32)

Returns the drawable for the layer at the specified index.

(Inherited from LayerDrawable)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetHotspotBounds(Rect) GetHotspotBounds(Rect) Inherited from Drawable
GetId(Int32) GetId(Int32)

Returns the ID of the specified layer.

(Inherited from LayerDrawable)
GetLayerGravity(Int32) GetLayerGravity(Int32) Inherited from LayerDrawable
GetLayerHeight(Int32) GetLayerHeight(Int32) Inherited from LayerDrawable
GetLayerInsetBottom(Int32) GetLayerInsetBottom(Int32) Inherited from LayerDrawable
GetLayerInsetEnd(Int32) GetLayerInsetEnd(Int32) Inherited from LayerDrawable
GetLayerInsetLeft(Int32) GetLayerInsetLeft(Int32) Inherited from LayerDrawable
GetLayerInsetRight(Int32) GetLayerInsetRight(Int32) Inherited from LayerDrawable
GetLayerInsetStart(Int32) GetLayerInsetStart(Int32) Inherited from LayerDrawable
GetLayerInsetTop(Int32) GetLayerInsetTop(Int32) Inherited from LayerDrawable
GetLayerWidth(Int32) GetLayerWidth(Int32) Inherited from LayerDrawable
GetOutline(Outline) GetOutline(Outline)

Called to get the drawable to populate the Outline that defines its drawing area.

(Inherited from Drawable)
GetPadding(Rect) GetPadding(Rect)

Return in padding the insets suggested by this Drawable for placing content inside the drawable's bounds.

(Inherited from Drawable)
GetState() GetState()

Describes the current state, as a union of primitve states, such as R attr state_focused, R attr state_selected, etc.

(Inherited from Drawable)
Inflate(Resources, XmlReader, IAttributeSet) Inflate(Resources, XmlReader, IAttributeSet)

Inflate this Drawable from an XML resource.

(Inherited from Drawable)
Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme) Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme)

Inflate this Drawable from an XML resource optionally styled by a theme.

(Inherited from Drawable)
InflateAsync(Resources, XmlReader, IAttributeSet) InflateAsync(Resources, XmlReader, IAttributeSet) Inherited from Drawable
InflateAsync(Resources, XmlReader, IAttributeSet, Resources+Theme) InflateAsync(Resources, XmlReader, IAttributeSet, Resources+Theme) Inherited from Drawable
InvalidateDrawable(Drawable) InvalidateDrawable(Drawable)

Called when the drawable needs to be redrawn.

(Inherited from LayerDrawable)
InvalidateSelf() InvalidateSelf()

Use the current Drawable.ICallback implementation to have this Drawable redrawn.

(Inherited from Drawable)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
JumpToCurrentState() JumpToCurrentState()

If this Drawable does transition animations between states, ask that it immediately jump to the current state and skip any active animations.

(Inherited from Drawable)
Mutate() Mutate()

Make this drawable mutable.

(Inherited from Drawable)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
OnBoundsChange(Rect) OnBoundsChange(Rect)

Override this in your subclass to change appearance if you vary based on the bounds.

(Inherited from Drawable)
OnLayoutDirectionChanged(Int32) OnLayoutDirectionChanged(Int32) Inherited from Drawable
OnLevelChange(Int32) OnLevelChange(Int32)

Override this in your subclass to change appearance if you vary based on level.

(Inherited from Drawable)
OnStateChange(Int32[]) OnStateChange(Int32[])

Override this in your subclass to change appearance if you recognize the specified state.

(Inherited from Drawable)
ResetTransition() ResetTransition()

Show only the first layer.

ReverseTransition(Int32) ReverseTransition(Int32)

Reverses the transition, picking up where the transition currently is.

ScheduleDrawable(Drawable, Action, Int64) ScheduleDrawable(Drawable, Action, Int64) Inherited from LayerDrawable
ScheduleDrawable(Drawable, IRunnable, Int64) ScheduleDrawable(Drawable, IRunnable, Int64)

A Drawable can call this to schedule the next frame of its animation.

(Inherited from LayerDrawable)
ScheduleSelf(Action, Int64) ScheduleSelf(Action, Int64) Inherited from Drawable
ScheduleSelf(IRunnable, Int64) ScheduleSelf(IRunnable, Int64)

Use the current Drawable.ICallback implementation to have this Drawable scheduled.

(Inherited from Drawable)
SetAlpha(Int32) SetAlpha(Int32)

Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.

(Inherited from LayerDrawable)
SetBounds(Int32, Int32, Int32, Int32) SetBounds(Int32, Int32, Int32, Int32)

Specify a bounding rectangle for the Drawable.

(Inherited from Drawable)
SetCallback(Drawable+ICallback) SetCallback(Drawable+ICallback)

Bind a Drawable.ICallback object to this Drawable.

(Inherited from Drawable)
SetColorFilter(Color, PorterDuff+Mode) SetColorFilter(Color, PorterDuff+Mode)

Specify a color and Porter-Duff mode to be the color filter for this drawable.

(Inherited from Drawable)
SetColorFilter(ColorFilter) SetColorFilter(ColorFilter)

Specify an optional color filter for the drawable.

(Inherited from LayerDrawable)
SetDither(Boolean) SetDither(Boolean)

Set to true to have the drawable dither its colors when drawn to a device with fewer than 8-bits per color component.

(Inherited from Drawable)
SetDrawable(Int32, Drawable) SetDrawable(Int32, Drawable) Inherited from LayerDrawable
SetDrawableByLayerId(Int32, Drawable) SetDrawableByLayerId(Int32, Drawable)

Replaces the Drawable for the layer with the given id.

(Inherited from LayerDrawable)
SetFilterBitmap(Boolean) SetFilterBitmap(Boolean)

Set to true to have the drawable filter its bitmaps with bilinear sampling when they are scaled or rotated.

(Inherited from Drawable)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetHotspot(Single, Single) SetHotspot(Single, Single)

Specifies the hotspot's location within the drawable.

(Inherited from Drawable)
SetHotspotBounds(Int32, Int32, Int32, Int32) SetHotspotBounds(Int32, Int32, Int32, Int32)

Sets the bounds to which the hotspot is constrained, if they should be different from the drawable bounds.

(Inherited from Drawable)
SetId(Int32, Int32) SetId(Int32, Int32)

Sets the ID of a layer.

(Inherited from LayerDrawable)
SetLayerGravity(Int32, GravityFlags) SetLayerGravity(Int32, GravityFlags) Inherited from LayerDrawable
SetLayerHeight(Int32, Int32) SetLayerHeight(Int32, Int32) Inherited from LayerDrawable
SetLayerInset(Int32, Int32, Int32, Int32, Int32) SetLayerInset(Int32, Int32, Int32, Int32, Int32)

Specifies the insets in pixels for the drawable at the specified index.

(Inherited from LayerDrawable)
SetLayerInsetBottom(Int32, Int32) SetLayerInsetBottom(Int32, Int32) Inherited from LayerDrawable
SetLayerInsetEnd(Int32, Int32) SetLayerInsetEnd(Int32, Int32) Inherited from LayerDrawable
SetLayerInsetLeft(Int32, Int32) SetLayerInsetLeft(Int32, Int32) Inherited from LayerDrawable
SetLayerInsetRelative(Int32, Int32, Int32, Int32, Int32) SetLayerInsetRelative(Int32, Int32, Int32, Int32, Int32) Inherited from LayerDrawable
SetLayerInsetRight(Int32, Int32) SetLayerInsetRight(Int32, Int32) Inherited from LayerDrawable
SetLayerInsetStart(Int32, Int32) SetLayerInsetStart(Int32, Int32) Inherited from LayerDrawable
SetLayerInsetTop(Int32, Int32) SetLayerInsetTop(Int32, Int32) Inherited from LayerDrawable
SetLayerSize(Int32, Int32, Int32) SetLayerSize(Int32, Int32, Int32) Inherited from LayerDrawable
SetLayerWidth(Int32, Int32) SetLayerWidth(Int32, Int32) Inherited from LayerDrawable
SetLayoutDirection(LayoutDirection) SetLayoutDirection(LayoutDirection) Inherited from Drawable
SetLevel(Int32) SetLevel(Int32)

Specify the level for the drawable.

(Inherited from Drawable)
SetOpacity(Int32) SetOpacity(Int32)

Sets the opacity of this drawable directly instead of collecting the states from the layers.

(Inherited from LayerDrawable)
SetPadding(Int32, Int32, Int32, Int32) SetPadding(Int32, Int32, Int32, Int32) Inherited from LayerDrawable
SetPaddingRelative(Int32, Int32, Int32, Int32) SetPaddingRelative(Int32, Int32, Int32, Int32) Inherited from LayerDrawable
SetState(Int32[]) SetState(Int32[])

Specify a set of states for the drawable.

(Inherited from Drawable)
SetTint(Int32) SetTint(Int32)

Specifies tint color for this drawable.

(Inherited from Drawable)
SetTintList(ColorStateList) SetTintList(ColorStateList)

Specifies tint color for this drawable as a color state list.

(Inherited from Drawable)
SetTintMode(PorterDuff+Mode) SetTintMode(PorterDuff+Mode)

Specifies a tint blending mode for this drawable.

(Inherited from Drawable)
SetVisible(Boolean, Boolean) SetVisible(Boolean, Boolean)

Set whether this Drawable is visible.

(Inherited from Drawable)
StartTransition(Int32) StartTransition(Int32)

Begin the second layer on top of the first layer.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
UnscheduleDrawable(Drawable, Action) UnscheduleDrawable(Drawable, Action) Inherited from LayerDrawable
UnscheduleDrawable(Drawable, IRunnable) UnscheduleDrawable(Drawable, IRunnable)

A Drawable can call this to unschedule an action previously scheduled with Drawable.ICallback.

(Inherited from LayerDrawable)
UnscheduleSelf(Action) UnscheduleSelf(Action) Inherited from Drawable
UnscheduleSelf(IRunnable) UnscheduleSelf(IRunnable)

Use the current Drawable.ICallback implementation to have this Drawable unscheduled.

(Inherited from Drawable)
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Fields

InsetUndefined InsetUndefined Inherited from LayerDrawable
PaddingModeNest PaddingModeNest

Padding mode used to nest each layer inside the padding of the previous layer.

(Inherited from LayerDrawable)
PaddingModeStack PaddingModeStack

Padding mode used to stack each layer directly atop the previous layer.

(Inherited from LayerDrawable)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to