-
public interface DimensionsDefines the size of each edge of a rectangle. Used to store measurements such as padding or margin values.
-
-
Method Summary
Modifier and Type Method Description FloatgetLeftDp(Boolean isLtr)Returns the dimension of the left edge depending on the layout orientation. FloatgetRightDp(Boolean isLtr)Returns the dimension of the right edge depending on the layout orientation. abstract FloatgetStartDp()The value for the start edge in the dp unit. abstract FloatgetTopDp()The value for the top edge in the dp unit. abstract FloatgetEndDp()The value for the end edge in the dp unit. abstract FloatgetBottomDp()The value for the bottom edge in the dp unit. -
-
Method Detail
-
getLeftDp
Float getLeftDp(Boolean isLtr)
Returns the dimension of the left edge depending on the layout orientation.
- Parameters:
isLtr- whether the device layout is left-to-right.
-
getRightDp
Float getRightDp(Boolean isLtr)
Returns the dimension of the right edge depending on the layout orientation.
- Parameters:
isLtr- whether the device layout is left-to-right.
-
getStartDp
abstract Float getStartDp()
The value for the start edge in the dp unit.
-
getBottomDp
abstract Float getBottomDp()
The value for the bottom edge in the dp unit.
-
-
-
-