FixedSizeDrawable

open class FixedSizeDrawable

A wrapper drawable to square the wrapped drawable so that it expands to fill a square with exactly the given side length. The goal of this drawable is to ensure that square thumbnail drawables always match the size of the view they will be displayed in to avoid a costly requestLayout call. This class should not be used with views or drawables that are not square.

Constructors

Link copied to clipboard
open fun FixedSizeDrawable(    wrapped: Drawable,     width: Int,     height: Int)

Functions

Link copied to clipboard
open fun clearColorFilter()
Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
open fun getAlpha(): Int
Link copied to clipboard
open fun getCallback(): Callback
Link copied to clipboard
open fun getChangingConfigurations(): Int
Link copied to clipboard
open fun getConstantState(): ConstantState
Link copied to clipboard
open fun getCurrent(): Drawable
Link copied to clipboard
open fun getIntrinsicHeight(): Int
Link copied to clipboard
open fun getIntrinsicWidth(): Int
Link copied to clipboard
open fun getMinimumHeight(): Int
Link copied to clipboard
open fun getMinimumWidth(): Int
Link copied to clipboard
open fun getOpacity(): Int
Link copied to clipboard
open fun getPadding(padding: Rect): Boolean
Link copied to clipboard
open fun invalidateSelf()
Link copied to clipboard
open fun mutate(): Drawable
Link copied to clipboard
open fun scheduleSelf(what: Runnable, when: Long)
Link copied to clipboard
open fun setAlpha(i: Int)
Link copied to clipboard
open fun setBounds(bounds: Rect)
open fun setBounds(    left: Int,     top: Int,     right: Int,     bottom: Int)
Link copied to clipboard
open fun setChangingConfigurations(configs: Int)
Link copied to clipboard
open fun setColorFilter(colorFilter: ColorFilter)
open fun setColorFilter(color: Int, mode: Mode)
Link copied to clipboard
open fun setDither(dither: Boolean)
Link copied to clipboard
open fun setFilterBitmap(filter: Boolean)
Link copied to clipboard
open fun setVisible(visible: Boolean, restart: Boolean): Boolean
Link copied to clipboard
open fun unscheduleSelf(what: Runnable)