Android4.4 全屏幕模式,沉浸模式 & 在应用内开启透明状态栏和透明虚拟按钮
2014-03-06 14:49
471 查看
众所周知,Android从4.4开始,就进入了沉浸模式,下面的链接有个视频可以观看一下。
沉浸模式
http://www.cnbeta.com/articles/265297.htm
这里有个翻译过后的文档:
http://www.apkbus.com/design/patterns/fullscreen.html
https://developer.android.com/training/system-ui/immersive.html#nonsticky 这里有实践的说明:
http://www.cnblogs.com/zhengxt/p/3508485.html
Android4.4新的特性,在应用内开启透明状态栏和透明虚拟按钮
这篇文章写的非常好,写的非常细致。
http://www.cnblogs.com/zhengxt/p/3536905.html
官方文档:
https://developer.android.com/training/system-ui/status.html
更多4.4的新特性请移步:
http://developer.android.com/about/versions/android-4.4.html
如果你是做rom开发的,请一定重点看看这2个:
(when combined with
mode. While immersive full-screen mode is enabled, your activity continues to receive all touch events. The user can reveal the system bars with an inward swipe along the region where the system bars normally appear. This clears the
flag, if applied) so the system bars remain visible. However, if you'd like the system bars to hide again after a few moments, you can instead use the
By enabling translucent system bars, your layout will fill the area behind the system bars, so you must also enable
If you're creating a custom theme, set one of these themes as the parent theme or include the
and
扩展阅读:
http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2013/0709/1426.html
沉浸模式
http://www.cnbeta.com/articles/265297.htm
这里有个翻译过后的文档:
http://www.apkbus.com/design/patterns/fullscreen.html
https://developer.android.com/training/system-ui/immersive.html#nonsticky 这里有实践的说明:
http://www.cnblogs.com/zhengxt/p/3508485.html
Android4.4新的特性,在应用内开启透明状态栏和透明虚拟按钮
这篇文章写的非常好,写的非常细致。http://www.cnblogs.com/zhengxt/p/3536905.html
官方文档:
https://developer.android.com/training/system-ui/status.html
更多4.4的新特性请移步:
http://developer.android.com/about/versions/android-4.4.html
如果你是做rom开发的,请一定重点看看这2个:
一:Immersive full-screen mode
To provide your app with a layout that fills the entire screen, the newSYSTEM_UI_FLAG_IMMERSIVEflag for
setSystemUiVisibility()
(when combined with
SYSTEM_UI_FLAG_HIDE_NAVIGATION) enables a newimmersive full-screen
mode. While immersive full-screen mode is enabled, your activity continues to receive all touch events. The user can reveal the system bars with an inward swipe along the region where the system bars normally appear. This clears the
SYSTEM_UI_FLAG_HIDE_NAVIGATIONflag (and the
SYSTEM_UI_FLAG_FULLSCREEN
flag, if applied) so the system bars remain visible. However, if you'd like the system bars to hide again after a few moments, you can instead use the
SYSTEM_UI_FLAG_IMMERSIVE_STICKYflag.
二:Translucent system bars
You can now make the system bars partially translucent with new themes,Theme.Holo.NoActionBar.TranslucentDecorand
Theme.Holo.Light.NoActionBar.TranslucentDecor.
By enabling translucent system bars, your layout will fill the area behind the system bars, so you must also enable
fitsSystemWindowsfor the portion of your layout that should not be covered by the system bars.
If you're creating a custom theme, set one of these themes as the parent theme or include the
windowTranslucentNavigation
and
windowTranslucentStatusstyle properties in your theme.
扩展阅读:
android隐藏底部虚拟键Navigation Bar实现全屏
http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2013/0709/1426.html
相关文章推荐
- Android4.4 全屏幕模式,沉浸模式 & 在应用内开启透明状态栏和透明虚拟按钮
- Android4.4新的特性,在应用内开启透明状态栏和透明虚拟按钮
- Android4.4新的特性,在应用内开启透明状态栏和透明虚拟按钮。
- Android4.4新的特性,在应用内开启透明状态栏和透明虚拟按钮。
- 为应用加上Android4.4新特性的全屏模式-沉浸模式(Full-screen Immersive Mode)。
- Android透明状态栏与沉浸模式全解
- 有关Activity样式 、状态栏透明、屏幕亮度问题应用场景及其总结
- Android上透明状态栏,全屏显示以及沉浸模式
- 有关Activity样式 、状态栏透明、屏幕亮度问题应用场景及其总结
- 【Android学习】关于Android4.4沉浸模式的进入和退出时系统栏状态栏遮盖问题
- 玩转Android上透明状态栏,全屏显示以及沉浸模式(Immersive Mode)
- android 沉浸模式(状态栏透明 跟随布局颜色)
- 关于沉浸模式 状态栏颜色 底部虚拟键相关
- 为应用加上Android4.4新特性的全屏模式-沉浸模式(Full-screen Immersive Mode)。
- 为应用加上Android4.4新特性的全屏模式-沉浸模式(Full-screen Immersive Mode)
- 为应用加上Android4.4新特性的全屏模式-沉浸模式(Full-screen Immersive Mode)
- Android Immersive Mode (沉浸模式) 还是 Translucent Bars (透明状态栏)
- 为应用加上Android4.4新特性的全屏模式-沉浸模式(Full-screen Immersive Mode)。
- 在选择屏幕的标准应用工具条上增加自定义按钮
- Android之---沉浸式状态栏的错误理解(官方有沉浸模式的感念但是没有沉浸式状态栏的说法)