Package 

Class UiUtils

    • Method Summary

      Modifier and Type Method Description
      static float dpToPixel(float dp, Context context) Convert dp unit to equivalent pixels, depending on device density.
      static float pixelsToDp(float px, Context context) Convert device specific pixels to density independent pixels.
      static void secureActivity(Window window) Apply secure flag to given window (Activity).
      static Pair<Integer, Integer> getScreenSize(Activity context) Get device screen size in pixels.
      static boolean isPortrait(Context context)
      static Activity findActivity(Context context)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait