Android - 开发实例(15):变色SystemBar
来源:互联网 发布:openwrt ip mac绑定 编辑:程序博客网 时间:2024/06/05 05:25
方案一:
透明SystemBar
界面使用FrameLayout 在顶部底部位置添加和高度SystemBar的高度相等的View
方案二:
透明SystemBar
使用DecorView,它继承于FrameLayout,在DecorView顶部和底部各加一个视图
两者方案的不同:
方案一,颜色条是在Layout里面;方案二,颜色条是在DecorView里面。
两者视图层级不一样,使用方案一需要在每一个Layout文件中添加颜色条。
DecorView:http://blog.csdn.net/luoshengyang/article/details/8245546
具体代码我就不贴Demo程序了,Github上有开源的工具类采用的方案二,代码请参见:
SystemBarTint https://github.com/jgilfelt/SystemBarTint
0 0
- Android - 开发实例(15):变色SystemBar
- Android - 开发实例(14):透明SystemBar
- Android--操作系统的SystemBar
- Android系统栏相关(SystemBar)
- Android 状态栏(SystemBar)颜色改变
- Android开发中,变色状态栏
- ANDROID 隐藏 任务栏 systemui systembar 全屏显示
- ANDROID 隐藏 任务栏 systemui systembar 全屏显示
- Android平板4.1隐藏SystemBar(状态栏?~)
- ANDROID 隐藏 任务栏 systemui systembar 全屏显示
- ANDROID 隐藏 任务栏 systemui systembar 全屏显示
- android SystemBar 安卓状态栏工具类
- 如何在Android 4.0 ICS中禁用StatusBar | SystemBar | 状态栏
- Android简单的获取SystemBar,StatusBar,NavigationBar的高度
- Android简单的获取SystemBar,StatusBar,NavigationBar的高度
- Android开发之Android5.x的状态栏变色相关东西
- Android listView 隔行变色+按下变色
- android widget 开发实例
- C语言基本数据类型及其运算
- 线段树
- HDU 1006 TICk and TICK
- 一个人的旅行
- [ACM] POJ 1753 Flip Game (枚举,BFS,位运算)
- Android - 开发实例(15):变色SystemBar
- 关于浮动的前世今生
- CSS学习一
- Hadoop计算中的Shuffle过程
- 复素数Prime Judge(新生归来赛B题)
- J - Vertical Histogram(1.5.7)
- [CF 239B][BNUOJ 26625] King's Path [模拟]
- android一些系统相关的东西
- 一周一研究---- circular-progress-button