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

BoundsRule

public class BoundsRule
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.graphics.BoundsRule


This class contains the rules for updating the bounds of a CompositeDrawable.ChildDrawable. It contains four rules, one for each value of the rectangular bound - left/top/right/bottom.

Summary

Nested classes

class BoundsRule.ValueRule

This class represents individual rules for updating the bounds. 

Fields

public BoundsRule.ValueRule bottom

BoundsRule.ValueRule for bottom attribute of BoundsRule

public BoundsRule.ValueRule left

BoundsRule.ValueRule for left attribute of BoundsRule

public BoundsRule.ValueRule right

BoundsRule.ValueRule for right attribute of BoundsRule

public BoundsRule.ValueRule top

BoundsRule.ValueRule for top attribute of BoundsRule

Public constructors

BoundsRule()
BoundsRule(BoundsRule boundsRule)

Public methods

void calculateBounds(Rect rect, Rect result)

Takes in the current bounds and sets the final values based on the individual rules in the result object.

Inherited methods

From class java.lang.Object

Fields

bottom

added in version 25.4.0
BoundsRule.ValueRule bottom

BoundsRule.ValueRule for bottom attribute of BoundsRule

left

added in version 25.4.0
BoundsRule.ValueRule left

BoundsRule.ValueRule for left attribute of BoundsRule

added in version 25.4.0
BoundsRule.ValueRule right

BoundsRule.ValueRule for right attribute of BoundsRule

top

added in version 25.4.0
BoundsRule.ValueRule top

BoundsRule.ValueRule for top attribute of BoundsRule

Public constructors

BoundsRule

added in version 25.4.0
BoundsRule ()

BoundsRule

added in version 25.4.0
BoundsRule (BoundsRule boundsRule)

Parameters
boundsRule BoundsRule

Public methods

calculateBounds

added in version 25.4.0
void calculateBounds (Rect rect, 
                Rect result)

Takes in the current bounds and sets the final values based on the individual rules in the result object.

Parameters
rect Rect: Represents the current bounds.

result Rect: Represents the final bounds.