Package 

Class UtilsKt

    • Method Summary

      Modifier and Type Method Description
      final static Integer convertPixelsToDp(Float px, Context context) This method converts device specific pixels to density independent pixels.
      • Methods inherited from class java.lang.Object

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

      • convertPixelsToDp

         final static Integer convertPixelsToDp(Float px, Context context)

        This method converts device specific pixels to density independent pixels.

        Parameters:
        px - A value in px (pixels) unit.
        context - Context to get resources and device specific display metrics