added in version 25.4.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

CompositeDrawable.ChildDrawable

public static final class CompositeDrawable.ChildDrawable
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable


Wrapper class holding a drawable object and BoundsRule to update drawable bounds when parent bound changes.

Summary

Fields

public static final Property<CompositeDrawable.ChildDrawable, Integer> BOTTOM_ABSOLUTE

Implementation of Property for overrideBottom attribute.

public static final Property<CompositeDrawable.ChildDrawable, Float> BOTTOM_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable.

public static final Property<CompositeDrawable.ChildDrawable, Integer> LEFT_ABSOLUTE

Implementation of Property for overrideLeft attribute.

public static final Property<CompositeDrawable.ChildDrawable, Float> LEFT_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable.

public static final Property<CompositeDrawable.ChildDrawable, Integer> RIGHT_ABSOLUTE

Implementation of Property for overrideRight attribute.

public static final Property<CompositeDrawable.ChildDrawable, Float> RIGHT_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable.

public static final Property<CompositeDrawable.ChildDrawable, Integer> TOP_ABSOLUTE

Implementation of Property for overrideTop attribute.

public static final Property<CompositeDrawable.ChildDrawable, Float> TOP_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable.

Public constructors

CompositeDrawable.ChildDrawable(Drawable drawable, CompositeDrawable parent)

Public methods

BoundsRule getBoundsRule()

Returns the instance of BoundsRule.

Drawable getDrawable()

Returns the Drawable.

void recomputeBounds()

After changing the BoundsRule, user should call this function for the drawable to recalculate its bounds.

Inherited methods

From class java.lang.Object

Fields

BOTTOM_ABSOLUTE

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Integer> BOTTOM_ABSOLUTE

Implementation of Property for overrideBottom attribute.

BOTTOM_FRACTION

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Float> BOTTOM_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable. This allows users to change the bounds rules as a percentage of parent size. This is preferable over when the exact start/end position of scroll movement isn't available at compile time.

LEFT_ABSOLUTE

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Integer> LEFT_ABSOLUTE

Implementation of Property for overrideLeft attribute.

LEFT_FRACTION

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Float> LEFT_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable. This allows users to change the bounds rules as a percentage of parent size. This is preferable over when the exact start/end position of scroll movement isn't available at compile time.

RIGHT_ABSOLUTE

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Integer> RIGHT_ABSOLUTE

Implementation of Property for overrideRight attribute.

RIGHT_FRACTION

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Float> RIGHT_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable. This allows users to change the bounds rules as a percentage of parent size. This is preferable over when the exact start/end position of scroll movement isn't available at compile time.

TOP_ABSOLUTE

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Integer> TOP_ABSOLUTE

Implementation of Property for overrideTop attribute.

TOP_FRACTION

added in version 25.4.0
Property<CompositeDrawable.ChildDrawable, Float> TOP_FRACTION

Implementation of Property for overwriting the bottom attribute of BoundsRule associated with this CompositeDrawable.ChildDrawable. This allows users to change the bounds rules as a percentage of parent size. This is preferable over when the exact start/end position of scroll movement isn't available at compile time.

Public constructors

CompositeDrawable.ChildDrawable

added in version 25.4.0
CompositeDrawable.ChildDrawable (Drawable drawable, 
                CompositeDrawable parent)

Parameters
drawable Drawable

parent CompositeDrawable

Public methods

getBoundsRule

added in version 25.4.0
BoundsRule getBoundsRule ()

Returns the instance of BoundsRule.

Returns
BoundsRule

getDrawable

added in version 25.4.0
Drawable getDrawable ()

Returns the Drawable.

Returns
Drawable

recomputeBounds

added in version 25.4.0
void recomputeBounds ()

After changing the BoundsRule, user should call this function for the drawable to recalculate its bounds.