Package 

Class Corner


  • 
    public class Corner
    
                        

    A class used to specify the size and look of a given shape corner.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Corner.Absolute

      Defines an absolute size for a corner (in dp).

      public final class Corner.Relative

      Defines a relative size for a corner (in percent).

      public class Corner.Companion
    • Method Summary

      Modifier and Type Method Description
      final CornerTreatment getCornerTreatment()
      abstract Float getCornerSize(Float availableCornerSize, Float density) Calculates the size of the corner.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCornerSize

         abstract Float getCornerSize(Float availableCornerSize, Float density)

        Calculates the size of the corner.

        Parameters:
        availableCornerSize - the available space that this corner can take.
        density - the density of the screen (used in pixel size calculation).