add func of statusbar and func config wait to update
This commit is contained in:
@@ -414,6 +414,15 @@ public final class BarUtils {
|
||||
return statusBarView;
|
||||
}
|
||||
|
||||
public static void hideStatusBarAndSticky(@NonNull Window window){
|
||||
final ViewGroup decorView = (ViewGroup) window.getDecorView();
|
||||
final int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
|
||||
decorView.setSystemUiVisibility(decorView.getSystemUiVisibility() | uiOptions);
|
||||
}
|
||||
|
||||
public static void transparentStatusBar(@NonNull final Activity activity) {
|
||||
transparentStatusBar(activity.getWindow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user