Partager via


Android.Graphics.Drawables Namespace

Provides classes to manage a variety of visual elements that are intended for display only, such as bitmaps and gradients.

Classes

AdaptiveIconDrawable

This class can also be created via XML inflation using <adaptive-icon> tag in addition to dynamic creation.

Animatable2AnimationCallback
AnimatedImageDrawable

Drawable for drawing animated images (like GIF).

AnimatedStateListDrawable

Drawable containing a set of Drawable keyframes where the currently displayed keyframe is chosen based on the current state set.

AnimatedVectorDrawable

This class animates properties of a android.graphics.drawable.VectorDrawable with animations defined using android.animation.ObjectAnimator or android.animation.AnimatorSet.

AnimationDrawable

An object used to create frame-by-frame animations, defined by a series of Drawable objects, which can be used as a View object's background.

BitmapDrawable

A Drawable that wraps a bitmap and can be tiled, stretched, or aligned.

ClipDrawable

A Drawable that clips another Drawable based on this Drawable's current level value.

ColorDrawable

A specialized Drawable that fills the Canvas with a specified color.

ColorStateListDrawable

A Drawable that manages a ColorDrawable to make it stateful and backed by a ColorStateList.

Drawable

A Drawable is a general abstraction for "something that can be drawn.

Drawable.ConstantState

This abstract class is used by Drawables to store shared constant state and data between Drawables.

DrawableContainer

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

DrawableContainer.DrawableContainerState

A ConstantState that can contain several Drawables.

DrawableWrapper

Drawable container with only one child element.

GradientDrawable

A Drawable with a color gradient for buttons, backgrounds, etc.

GradientDrawable.Orientation

Controls how the gradient is oriented relative to the drawable's bounds

Icon

An umbrella container for several serializable graphics representations, including Bitmaps, compressed bitmap images (e.

Icon.DrawableLoadedEventArgs
Icon.InterfaceConsts
InsetDrawable

A Drawable that insets another Drawable by a specified distance or fraction of the content bounds.

LayerDrawable

A Drawable that manages an array of other Drawables.

LevelListDrawable

A resource that manages a number of alternate Drawables, each assigned a maximum numerical value.

NinePatchDrawable

A resizeable bitmap, with stretchable areas that you define.

PaintDrawable

Drawable that draws its bounds in the given paint, with optional rounded corners.

PictureDrawable

Drawable subclass that wraps a Picture, allowing the picture to be used wherever a Drawable is supported.

RippleDrawable

Drawable that shows a ripple effect in response to state changes.

RotateDrawable

A Drawable that can rotate another Drawable based on the current level value.

ScaleDrawable

A Drawable that changes the size of another Drawable based on its current level value.

ShapeDrawable

A Drawable object that draws primitive shapes.

ShapeDrawable.ShaderFactory

Base class defines a factory object that is called each time the drawable is resized (has a new width or height).

StateListDrawable

Lets you assign a number of graphic images to a single Drawable and swap out the visible item by a string ID value.

TransitionDrawable

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

VectorDrawable

This lets you create a drawable based on an XML vector graphic.

Interfaces

Drawable.ICallback

Implement this interface if you want to create an animated drawable that extends android.graphics.drawable.Drawable Drawable.

IAnimatable

Interface that drawables supporting animations should implement.

IAnimatable2

Abstract class that drawables supporting animations and callbacks should extend.

Icon.IOnDrawableLoadedListener

Implement this interface to receive a callback when #loadDrawableAsync(Context, OnDrawableLoadedListener, Handler) loadDrawableAsync is finished and your Drawable is ready.

Enums

ClipDrawableOrientation

Enumerates values returned by several types and taken as a parameter of the F:Android.Graphics.Drawables.ClipDrawable..ctor member.

GradientType

Enumerates values returned by the LinearGradient, RadialGradient, and SweepGradient members and taken as a parameter of the F:Android.Graphics.Drawables.GradientDrawable.SetGradientType member.

IconType
LayerDrawablePaddingMode

Enumerates values returned by several types.

ShapeType

Enumerates values returned by several methods of ShapeType and taken as a parameter of the F:Android.Graphics.Drawables.GradientDrawable.SetShape member.