ScaleDrawable

class ScaleDrawable @JvmOverloads constructor(val child: Drawable, val scale: <Error class: unknown class> = Scale.FIT) : Drawable, Drawable.Callback, Animatable

A Drawable that centers and scales its child to fill its bounds.

This allows drawables that only draw within their intrinsic dimensions to fill their entire bounds.

Constructors

Link copied to clipboard
constructor(child: Drawable, scale: <Error class: unknown class> = Scale.FIT)

Properties

Link copied to clipboard
Link copied to clipboard
val scale: <Error class: unknown class>

Functions

Link copied to clipboard
open override fun draw(canvas: Canvas)
Link copied to clipboard
open override fun getAlpha(): Int
Link copied to clipboard
open override fun getColorFilter(): ColorFilter?
Link copied to clipboard
open override fun getIntrinsicHeight(): Int
Link copied to clipboard
open override fun getIntrinsicWidth(): Int
Link copied to clipboard
open override fun invalidateDrawable(who: Drawable)
Link copied to clipboard
open override fun isRunning(): Boolean
Link copied to clipboard
open override fun isStateful(): Boolean
Link copied to clipboard
open override fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
Link copied to clipboard
open override fun setAlpha(alpha: Int)
Link copied to clipboard
open override fun setColorFilter(colorFilter: ColorFilter?)
Link copied to clipboard
open override fun setTint(tintColor: Int)
Link copied to clipboard
@RequiresApi(value = 29)
open override fun setTintBlendMode(blendMode: BlendMode?)
Link copied to clipboard
open override fun setTintList(tint: ColorStateList?)
Link copied to clipboard
open override fun setTintMode(tintMode: PorterDuff.Mode?)
Link copied to clipboard
open override fun start()
Link copied to clipboard
open override fun stop()
Link copied to clipboard
open override fun unscheduleDrawable(who: Drawable, what: Runnable)