Class InsetsUtils


  • public class InsetsUtils
    extends java.lang.Object
    • Constructor Detail

      • InsetsUtils

        public InsetsUtils()
    • Method Detail

      • addCutoutAndNavigationInsets

        public static void addCutoutAndNavigationInsets​(android.view.View view)
        Adds to the view insets from navigation bar and cutout. Insets must be calculated as we use translucent status and navigation bar in interstitial ad. Must be applied to every view in interstitial ad.

        It supports view where parents are RelativeLayout or FrameLayout.

      • getCutoutInsets

        public static CustomInsets getCutoutInsets​(android.content.Context context)
      • getNavigationInsets

        public static CustomInsets getNavigationInsets​(android.content.Context context)
      • resetMargins

        public static void resetMargins​(android.view.View view)