CompositeDrawable
open class CompositeDrawable : Drawable, Callback
kotlin.Any | ||
↳ | android.graphics.drawable.Drawable | |
↳ | androidx.leanback.graphics.CompositeDrawable |
Generic drawable class that can be composed of multiple children. Whenever the bounds changes for this class, it updates those of its children.
Summary
Nested classes | |
---|---|
Wrapper class holding a drawable object and |
Public constructors | |
---|---|
<init>() |
Public methods | |
---|---|
open Unit |
addChildDrawable(drawable: Drawable!) Adds the supplied region. |
open Unit | |
open Int |
getAlpha() |
open CompositeDrawable.ChildDrawable! |
getChildAt(index: Int) Returns the |
open Int |
Returns the total number of children. |
open ConstantState? | |
open Drawable! |
getDrawable(index: Int) Returns the |
open Int | |
open Unit |
invalidateDrawable(who: Drawable) |
open Drawable |
mutate() |
open Unit |
removeChild(index: Int) Removes the child corresponding to the given index. |
open Unit |
removeDrawable(drawable: Drawable!) Removes the given region. |
open Unit |
scheduleDrawable(who: Drawable, what: Runnable, when: Long) |
open Unit | |
open Unit |
setChildDrawableAt(index: Int, drawable: Drawable!) Sets the supplied region at given index. |
open Unit |
setColorFilter(colorFilter: ColorFilter?) |
open Unit |
unscheduleDrawable(who: Drawable, what: Runnable) |
Protected methods | |
---|---|
open Unit |
onBoundsChange(bounds: Rect!) |
Public constructors
<init>
CompositeDrawable()
Public methods
getChildAt
open fun getChildAt(index: Int): CompositeDrawable.ChildDrawable!
Returns the ChildDrawable
at the given index.
getConstantState
open fun getConstantState(): ConstantState?
getOpacity
open fun getOpacity(): Int