Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hongyangAndroid/ColorfulStatusBar
Android app状态栏变色。
https://github.com/hongyangAndroid/ColorfulStatusBar
Last synced: 3 months ago
JSON representation
Android app状态栏变色。
- Host: GitHub
- URL: https://github.com/hongyangAndroid/ColorfulStatusBar
- Owner: hongyangAndroid
- License: apache-2.0
- Created: 2015-09-21T11:34:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T10:19:55.000Z (over 7 years ago)
- Last Synced: 2024-07-01T09:39:51.522Z (4 months ago)
- Language: Java
- Size: 1.04 MB
- Stars: 475
- Watchers: 30
- Forks: 186
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ColorfulStatusBar
Android app状态栏变色。适用于版本大于等于19以上。
## 用法
Activiy onCreate中调用`setContentView()`后添加:
```java
StatusBarCompat.compat(this);
```如果需要制定状态栏颜色,使用此方法:
```java
StatusBarCompat.compat(this, 0xFFFF0000);
```## 效果图
###默认效果
* 4.4
* 如果是banner
* 5.x
###指定颜色
* 4.4
* 5.x