Package 

Class IntExtKt

    • Method Summary

      Modifier and Type Method Description
      final static Integer densityNormalized(Integer $self, Float density) Normalizes an Int value (font size, view dimension, view position, etc.) according with the device pixels density.
      • Methods inherited from class java.lang.Object

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

      • densityNormalized

         final static Integer densityNormalized(Integer $self, Float density)

        Normalizes an Int value (font size, view dimension, view position, etc.) according with the device pixels density. Example: if a device has a DPI = 2, the normalized height of a view will be view.height/2.