BoundsRule
public class 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 types |
|---|
public final class BoundsRule.ValueRuleThis class represents individual rules for updating the bounds. |
Public fields |
|
|---|---|
@Nullable BoundsRule.ValueRule |
|
@Nullable BoundsRule.ValueRule |
|
@Nullable BoundsRule.ValueRule |
|
@Nullable BoundsRule.ValueRule |
|
Public constructors |
|---|
BoundsRule(@NonNull BoundsRule boundsRule) |
Public methods |
|
|---|---|
void |
calculateBounds(@NonNull Rect rect, @NonNull Rect result)Takes in the current bounds and sets the final values based on the individual rules in the result object. |
Public fields
bottom
public @Nullable BoundsRule.ValueRule bottom
ValueRule for bottom attribute of BoundsRule
left
public @Nullable BoundsRule.ValueRule left
ValueRule for left attribute of BoundsRule
right
public @Nullable BoundsRule.ValueRule right
ValueRule for right attribute of BoundsRule
top
public @Nullable BoundsRule.ValueRule top
ValueRule for top attribute of BoundsRule