-
public class InsetsUtils
-
-
Method Summary
Modifier and Type Method Description static voidaddCutoutAndNavigationInsets(@Nullable() View view)Adds to the view insets from navigation bar and cutout.Insets must be calculated as we use translucent status and navigation bar ininterstitial ad. static CustomInsetsgetCutoutInsets(Context context)static CustomInsetsgetNavigationInsets(Context context)static voidresetMargins(@Nullable() View view)-
-
Method Detail
-
addCutoutAndNavigationInsets
static void addCutoutAndNavigationInsets(@Nullable() View view)
Adds to the view insets from navigation bar and cutout.Insets must be calculated as we use translucent status and navigation bar ininterstitial ad. Must be applied to every view in interstitial ad.
It supports view where parents are RelativeLayout or FrameLayout.
-
getCutoutInsets
static CustomInsets getCutoutInsets(Context context)
-
getNavigationInsets
static CustomInsets getNavigationInsets(Context context)
-
resetMargins
static void resetMargins(@Nullable() View view)
-
-
-
-