ChildDrawable
class ChildDrawable
kotlin.Any | |
↳ | androidx.leanback.graphics.CompositeDrawable.ChildDrawable |
Wrapper class holding a drawable object and BoundsRule
to update drawable bounds when parent bound changes.
Summary
Public constructors | |
---|---|
<init>(drawable: Drawable!, parent: CompositeDrawable!) |
Public methods | |
---|---|
BoundsRule! |
Returns the instance of |
Drawable! |
Returns the |
Unit |
After changing the |
Properties | |
---|---|
static Property<CompositeDrawable.ChildDrawable!, Int!>! |
Implementation of |
static Property<CompositeDrawable.ChildDrawable!, Float!>! |
Implementation of |
static Property<CompositeDrawable.ChildDrawable!, Int!>! |
Implementation of |
static Property<CompositeDrawable.ChildDrawable!, Float!>! |
Implementation of |
static Property<CompositeDrawable.ChildDrawable!, Int!>! |
Implementation of |
static Property<CompositeDrawable.ChildDrawable!, Float!>! |
Implementation of |
static Property<CompositeDrawable.ChildDrawable!, Int!>! |
Implementation of |
static Property<CompositeDrawable.ChildDrawable!, Float!>! |
Implementation of |
Public constructors
<init>
ChildDrawable(
drawable: Drawable!,
parent: CompositeDrawable!)
Public methods
recomputeBounds
fun recomputeBounds(): Unit
After changing the BoundsRule
, user should call this function for the drawable to recalculate its bounds.
Properties
BOTTOM_ABSOLUTE
static val BOTTOM_ABSOLUTE: Property<CompositeDrawable.ChildDrawable!, Int!>!
Implementation of Property
for overrideBottom attribute.
BOTTOM_FRACTION
static val BOTTOM_FRACTION: Property<CompositeDrawable.ChildDrawable!, Float!>!
Implementation of Property
for overwriting the bottom attribute of BoundsRule
associated with this ChildDrawable
. This allows users to change the bounds rules as a percentage of parent size. This is preferable over BOTTOM_ABSOLUTE
when the exact start/end position of scroll movement isn't available at compile time.
LEFT_ABSOLUTE
static val LEFT_ABSOLUTE: Property<CompositeDrawable.ChildDrawable!, Int!>!
Implementation of Property
for overrideLeft attribute.
LEFT_FRACTION
static val LEFT_FRACTION: Property<CompositeDrawable.ChildDrawable!, Float!>!
Implementation of Property
for overwriting the bottom attribute of BoundsRule
associated with this ChildDrawable
. This allows users to change the bounds rules as a percentage of parent size. This is preferable over LEFT_ABSOLUTE
when the exact start/end position of scroll movement isn't available at compile time.
RIGHT_ABSOLUTE
static val RIGHT_ABSOLUTE: Property<CompositeDrawable.ChildDrawable!, Int!>!
Implementation of Property
for overrideRight attribute.
RIGHT_FRACTION
static val RIGHT_FRACTION: Property<CompositeDrawable.ChildDrawable!, Float!>!
Implementation of Property
for overwriting the bottom attribute of BoundsRule
associated with this ChildDrawable
. This allows users to change the bounds rules as a percentage of parent size. This is preferable over RIGHT_ABSOLUTE
when the exact start/end position of scroll movement isn't available at compile time.
TOP_ABSOLUTE
static val TOP_ABSOLUTE: Property<CompositeDrawable.ChildDrawable!, Int!>!
Implementation of Property
for overrideTop attribute.
TOP_FRACTION
static val TOP_FRACTION: Property<CompositeDrawable.ChildDrawable!, Float!>!
Implementation of Property
for overwriting the bottom attribute of BoundsRule
associated with this ChildDrawable
. This allows users to change the bounds rules as a percentage of parent size. This is preferable over TOP_ABSOLUTE
when the exact start/end position of scroll movement isn't available at compile time.