标签:hid nba flag nav option statusbar ati uil arc
// 系统状态栏透明
if (Build.VERSION.SDK_INT >=21){
View decorView = getWindow().getDecorView();
int option = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
decorView.setSystemUiVisibility(option);
getWindow().setNavigationBarColor(Color.TRANSPARENT);
getWindow().setStatusBarColor(Color.TRANSPARENT);
}
标签:hid nba flag nav option statusbar ati uil arc
原文地址:https://www.cnblogs.com/ysxy/p/9004510.html