-
public final class ScreenEasy
-
-
Field Summary
Fields Modifier and Type Field Description private final ScreenPaddingnavBarPaddingprivate final ScreenPaddingstatusBarPaddingprivate final ScreenPaddingcutoutPaddingprivate final IntegerfullWidthprivate final IntegerfullHeightprivate final SizefullSizeprivate final ScreenAreasafeAreaprivate final ScreenPaddingsafeScreenPaddingprivate final IntegersafePaddingLeftprivate final IntegersafePaddingRightprivate final IntegersafePaddingTopprivate final IntegersafePaddingBottomprivate final IntegersafeWidthprivate final IntegersafeHeightprivate final SizesafeSizeprivate final IntegerstatusBarHeightprivate final IntegernavBarHeightprivate final ScreenRotationscreenRotation
-
Constructor Summary
Constructors Constructor Description ScreenEasy()
-
Method Summary
Modifier and Type Method Description final ScreenPaddinggetNavBarPadding()final ScreenPaddinggetStatusBarPadding()final ScreenPaddinggetCutoutPadding()final IntegergetFullWidth()final IntegergetFullHeight()final SizegetFullSize()final ScreenAreagetSafeArea()final ScreenPaddinggetSafeScreenPadding()final IntegergetSafePaddingLeft()final IntegergetSafePaddingRight()final IntegergetSafePaddingTop()final IntegergetSafePaddingBottom()final IntegergetSafeWidth()final IntegergetSafeHeight()final SizegetSafeSize()final IntegergetStatusBarHeight()final IntegergetNavBarHeight()final ScreenRotationgetScreenRotation()final Unitwith(Context context)call this function before any other function to setup properlyjust need to call one time, calling multiple times is okay, but unnecessary final Unitrefresh()refresh attributes, call when configuration change, rotation, ... final BooleanisButtonsNavigation()return true if buttons navigation is being used (ie: 3 buttons: back, home, recent apps) final BooleanisGestureNavigation()return true if gesture navigation is being used (ie: line gesture, no-line gesture) final BooleanisPortrait()-
-
Method Detail
-
getNavBarPadding
final ScreenPadding getNavBarPadding()
-
getStatusBarPadding
final ScreenPadding getStatusBarPadding()
-
getCutoutPadding
final ScreenPadding getCutoutPadding()
-
getFullWidth
final Integer getFullWidth()
-
getFullHeight
final Integer getFullHeight()
-
getFullSize
final Size getFullSize()
-
getSafeArea
final ScreenArea getSafeArea()
-
getSafeScreenPadding
final ScreenPadding getSafeScreenPadding()
-
getSafePaddingLeft
final Integer getSafePaddingLeft()
-
getSafePaddingRight
final Integer getSafePaddingRight()
-
getSafePaddingTop
final Integer getSafePaddingTop()
-
getSafePaddingBottom
final Integer getSafePaddingBottom()
-
getSafeWidth
final Integer getSafeWidth()
-
getSafeHeight
final Integer getSafeHeight()
-
getSafeSize
final Size getSafeSize()
-
getStatusBarHeight
final Integer getStatusBarHeight()
-
getNavBarHeight
final Integer getNavBarHeight()
-
getScreenRotation
final ScreenRotation getScreenRotation()
-
with
final Unit with(Context context)
call this function before any other function to setup properly
just need to call one time, calling multiple times is okay, but unnecessary
-
isButtonsNavigation
final Boolean isButtonsNavigation()
return true if buttons navigation is being used (ie: 3 buttons: back, home, recent apps)
-
isGestureNavigation
final Boolean isGestureNavigation()
return true if gesture navigation is being used (ie: line gesture, no-line gesture)
-
isPortrait
final Boolean isPortrait()
-
-
-
-