Package 

Interface Dimensions


  • 
    public interface Dimensions
    
                        

    Defines 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
      Float getLeftDp(Boolean isLtr) Returns the dimension of the left edge depending on the layout orientation.
      Float getRightDp(Boolean isLtr) Returns the dimension of the right edge depending on the layout orientation.
      abstract Float getStartDp() The value for the start edge in the dp unit.
      abstract Float getTopDp() The value for the top edge in the dp unit.
      abstract Float getEndDp() The value for the end edge in the dp unit.
      abstract Float getBottomDp() The value for the bottom edge in the dp unit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

      • getTopDp

         abstract Float getTopDp()

        The value for the top edge in the dp unit.

      • getEndDp

         abstract Float getEndDp()

        The value for the end edge in the dp unit.

      • getBottomDp

         abstract Float getBottomDp()

        The value for the bottom edge in the dp unit.