MovieDrawable

class MovieDrawable @JvmOverloads() constructor(movie: Movie, pool: BitmapPool, config: Bitmap.Config, scale: Scale) : Drawable, Animatable2Compat

A Drawable that supports rendering Movies (i.e. GIFs).

NOTE: Prefer using ImageDecoderDecoder and AnimatedImageDrawable on API 28 and above.

Constructors

MovieDrawable
Link copied to clipboard
fun MovieDrawable(movie: Movie, pool: BitmapPool = BitmapPool(0), config: Bitmap.Config = Bitmap.Config.ARGB_8888, scale: Scale = Scale.FIT)

Types

Companion
Link copied to clipboard
object Companion

Functions

applyTheme
Link copied to clipboard
open fun applyTheme(p0: Resources.Theme)
canApplyTheme
Link copied to clipboard
open fun canApplyTheme(): Boolean
clearAnimationCallbacks
Link copied to clipboard
open override fun clearAnimationCallbacks()
clearColorFilter
Link copied to clipboard
open fun clearColorFilter()
copyBounds
Link copied to clipboard
fun copyBounds(): Rect
fun copyBounds(p0: Rect)
draw
Link copied to clipboard
open override fun draw(canvas: Canvas)
getAlpha
Link copied to clipboard
open fun getAlpha(): Int
getAnimatedTransformation
Link copied to clipboard
fun getAnimatedTransformation(): AnimatedTransformation?
getBounds
Link copied to clipboard
fun getBounds(): Rect
getCallback
Link copied to clipboard
open fun getCallback(): Drawable.Callback?
getChangingConfigurations
Link copied to clipboard
open fun getChangingConfigurations(): Int
getColorFilter
Link copied to clipboard
open fun getColorFilter(): ColorFilter?
getConstantState
Link copied to clipboard
open fun getConstantState(): Drawable.ConstantState?
getCurrent
Link copied to clipboard
open fun getCurrent(): Drawable
getDirtyBounds
Link copied to clipboard
open fun getDirtyBounds(): Rect
getHotspotBounds
Link copied to clipboard
open fun getHotspotBounds(p0: Rect)
getIntrinsicHeight
Link copied to clipboard
open override fun getIntrinsicHeight(): Int
getIntrinsicWidth
Link copied to clipboard
open override fun getIntrinsicWidth(): Int
getLayoutDirection
Link copied to clipboard
open fun getLayoutDirection(): Int
getLevel
Link copied to clipboard
fun getLevel(): Int
getMinimumHeight
Link copied to clipboard
open fun getMinimumHeight(): Int
getMinimumWidth
Link copied to clipboard
open fun getMinimumWidth(): Int
getOpacity
Link copied to clipboard
open override fun getOpacity(): Int
getOpticalInsets
Link copied to clipboard
open fun getOpticalInsets(): Insets
getOutline
Link copied to clipboard
open fun getOutline(p0: Outline)
getPadding
Link copied to clipboard
open fun getPadding(p0: Rect): Boolean
getRepeatCount
Link copied to clipboard
fun getRepeatCount(): Int
Get the number of times the animation will repeat.
getState
Link copied to clipboard
open fun getState(): IntArray
getTransparentRegion
Link copied to clipboard
open fun getTransparentRegion(): Region?
inflate
Link copied to clipboard
open fun inflate(p0: Resources, p1: XmlPullParser, p2: AttributeSet)
open fun inflate(p0: Resources, p1: XmlPullParser, p2: AttributeSet, p3: Resources.Theme?)
invalidateSelf
Link copied to clipboard
open fun invalidateSelf()
isAutoMirrored
Link copied to clipboard
open fun isAutoMirrored(): Boolean
isFilterBitmap
Link copied to clipboard
open fun isFilterBitmap(): Boolean
isProjected
Link copied to clipboard
open fun isProjected(): Boolean
isRunning
Link copied to clipboard
open override fun isRunning(): Boolean
isStateful
Link copied to clipboard
open fun isStateful(): Boolean
isVisible
Link copied to clipboard
fun isVisible(): Boolean
jumpToCurrentState
Link copied to clipboard
open fun jumpToCurrentState()
mutate
Link copied to clipboard
open fun mutate(): Drawable
onBoundsChange
Link copied to clipboard
open fun onBoundsChange(p0: Rect)
onLayoutDirectionChanged
Link copied to clipboard
open fun onLayoutDirectionChanged(p0: Int): Boolean
onLevelChange
Link copied to clipboard
open fun onLevelChange(p0: Int): Boolean
onStateChange
Link copied to clipboard
open fun onStateChange(p0: IntArray): Boolean
registerAnimationCallback
Link copied to clipboard
open override fun registerAnimationCallback(callback: Animatable2Compat.AnimationCallback)
scheduleSelf
Link copied to clipboard
open fun scheduleSelf(p0: Runnable, p1: Long)
setAlpha
Link copied to clipboard
open override fun setAlpha(alpha: Int)
setAnimatedTransformation
Link copied to clipboard
fun setAnimatedTransformation(animatedTransformation: AnimatedTransformation?)
Set the AnimatedTransformation to apply when drawing.
setAutoMirrored
Link copied to clipboard
open fun setAutoMirrored(p0: Boolean)
setBounds
Link copied to clipboard
open fun setBounds(p0: Rect)
open fun setBounds(p0: Int, p1: Int, p2: Int, p3: Int)
setCallback
Link copied to clipboard
fun setCallback(p0: Drawable.Callback?)
setChangingConfigurations
Link copied to clipboard
open fun setChangingConfigurations(p0: Int)
setColorFilter
Link copied to clipboard
open override fun setColorFilter(colorFilter: ColorFilter?)
open fun setColorFilter(p0: Int, p1: PorterDuff.Mode)
setDither
Link copied to clipboard
open fun setDither(p0: Boolean)
setFilterBitmap
Link copied to clipboard
open fun setFilterBitmap(p0: Boolean)
setHotspot
Link copied to clipboard
open fun setHotspot(p0: Float, p1: Float)
setHotspotBounds
Link copied to clipboard
open fun setHotspotBounds(p0: Int, p1: Int, p2: Int, p3: Int)
setLayoutDirection
Link copied to clipboard
fun setLayoutDirection(p0: Int): Boolean
setLevel
Link copied to clipboard
fun setLevel(p0: Int): Boolean
setRepeatCount
Link copied to clipboard
fun setRepeatCount(repeatCount: Int)
Set the number of times to repeat the animation.
setState
Link copied to clipboard
open fun setState(p0: IntArray): Boolean
setTint
Link copied to clipboard
open fun setTint(p0: Int)
setTintBlendMode
Link copied to clipboard
open fun setTintBlendMode(p0: BlendMode?)
setTintList
Link copied to clipboard
open fun setTintList(p0: ColorStateList?)
setTintMode
Link copied to clipboard
open fun setTintMode(p0: PorterDuff.Mode?)
setVisible
Link copied to clipboard
open fun setVisible(p0: Boolean, p1: Boolean): Boolean
start
Link copied to clipboard
open override fun start()
stop
Link copied to clipboard
open override fun stop()
unregisterAnimationCallback
Link copied to clipboard
open override fun unregisterAnimationCallback(callback: Animatable2Compat.AnimationCallback): Boolean
unscheduleSelf
Link copied to clipboard
open fun unscheduleSelf(p0: Runnable)

Properties

config
Link copied to clipboard
val config: Bitmap.Config
scale
Link copied to clipboard
val scale: Scale