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.ValueRuleThis class represents individual rules for updating the bounds. | 
| Fields | |
|---|---|
| 
    public
    
    
    BoundsRule.ValueRule | bottom
 | 
| 
    public
    
    
    BoundsRule.ValueRule | left
 | 
| 
    public
    
    
    BoundsRule.ValueRule | right
 | 
| 
    public
    
    
    BoundsRule.ValueRule | top
 | 
| 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
BoundsRule.ValueRule bottom
BoundsRule.ValueRule for bottom attribute of BoundsRule 
left
BoundsRule.ValueRule left
BoundsRule.ValueRule for left attribute of BoundsRule 
right
BoundsRule.ValueRule right
BoundsRule.ValueRule for right attribute of BoundsRule 
top
BoundsRule.ValueRule top
BoundsRule.ValueRule for top attribute of BoundsRule 
Public constructors
BoundsRule
BoundsRule (BoundsRule boundsRule)
| Parameters | |
|---|---|
| boundsRule | BoundsRule | 
Public methods
calculateBounds
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. | 
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
