Android app状态栏变色。
适用于版本大于等于19以上。
Activiy onCreate中调用setContentView()后添加:
StatusBarCompat.compat(this);
如果需要制定状态栏颜色,使用此方法:
StatusBarCompat.compat(this, 0xFFFF0000);
###默认效果
- 4.4
- 如果是banner
- 5.x
###指定颜色
- 4.4
- 5.x
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |