------------------------------------------------------------------------------------
rk3288 底部不闪的设置
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
params.flags |= //WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
//|WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
//|WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_FULLSCREEN;
//|WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
}
params.systemUiVisibility = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
//| View.INVISIBLE
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
------------------------------------------------------------------------------------
rk3399 底部不闪的设置 解决在规整的机器上闪烁的问题
// API 19 以上则还可以开启透明状态栏与导航栏
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
params.flags |= //
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS//无变化 17
| WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION//无变化 17
| WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS//悬浮窗口覆盖显示在导航栏之上
// | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE//156行打开,上下跳动的关键 悬浮窗口覆盖显示在导航栏之上,应该注销,这样才能进入全屏状态 17
| WindowManager.LayoutParams.FLAG_FULLSCREEN
| WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;//隐藏状态栏
}
params.systemUiVisibility =
// View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // 开放这个rk3288 底部导航栏会一闪一闪的
| View.INVISIBLE
View.SYSTEM_UI_FLAG_FULLSCREEN //隐藏状态栏,但是时间还在
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION//开放这个rk3288 状态栏隐藏了
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY //开放后没什么效果
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE//开放后没什么效果
| View.SYSTEM_UI_FLAG_IMMERSIVE //加了这行解决上下跳动,时间才隐藏 https://blog.csdn.net/QQxiaoqiang1573/article/details/79867127
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
;
------------------------------------------------------------------------------------
rk 3288和rk3399都不闪的设置
// API 19 以上则还可以开启透明状态栏与导航栏
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
params.flags |= //WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
//|WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
//|WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_FULLSCREEN;
//|WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
}
params.systemUiVisibility =
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // 开放这个rk3288 底部导航栏会一闪一闪的,
// | View.INVISIBLE
| View.SYSTEM_UI_FLAG_FULLSCREEN //隐藏状态栏,但是时间还在
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION//开放这个rk3288 状态栏隐藏了
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY //开放后没什么效果
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE//开放后没什么效果
| View.SYSTEM_UI_FLAG_IMMERSIVE //加了这行解决上下跳动,时间才隐藏 https://blog.csdn.net/QQxiaoqiang1573/article/details/79867127
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
;