-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
207 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,47 @@ | ||
# SystemBarUtils | ||
--- | ||
Android toolbar | ||
|
||
#### Description | ||
Android SystemBar Utils | ||
|
||
#### Software Architecture | ||
Software architecture description | ||
# Dependency | ||
--- | ||
```groovy | ||
dependencies { | ||
implementation 'com.brave.system.bar:library:1.0.1' | ||
} | ||
``` | ||
|
||
#### Installation | ||
|
||
1. xxxx | ||
2. xxxx | ||
3. xxxx | ||
# use | ||
--- | ||
|
||
#### Instructions | ||
1. Transparent | ||
|
||
1. xxxx | ||
2. xxxx | ||
3. xxxx | ||
```java | ||
BarUtils.setTransparent(this); | ||
``` | ||
|
||
#### Contribution | ||
2. Transparent | ||
|
||
1. Fork the repository | ||
2. Create Feat_xxx branch | ||
3. Commit your code | ||
4. Create Pull Request | ||
```java | ||
BarUtils.setTransparent(this); | ||
``` | ||
|
||
3. set colors | ||
|
||
#### Gitee Feature | ||
```java | ||
BarUtils.setSystemBarColor(this, Color.BLUE); | ||
``` | ||
|
||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md | ||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com) | ||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) | ||
4. The most valuable open source project [GVP](https://gitee.com/gvp) | ||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) | ||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) | ||
4. Other | ||
|
||
```java | ||
BarUtils.setSystemBarColor(Window, View, boolean, boolean, boolean, boolean, boolean, boolean, int, int) | ||
``` | ||
|
||
# notice | ||
|
||
- BarUtils StatusBarUtils NavBarUtils have three types of mutual exclusion and can only be used one of them | ||
- BarUtils status bar and virtual button bar will be changed together | ||
- StatusBarUtils only changes the status bar | ||
- NavBarUtils only changes the virtual button bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,47 @@ | ||
# SystemBarUtils | ||
--- | ||
安卓系统栏工具 | ||
|
||
#### gradle导入 | ||
|
||
# 依赖 | ||
--- | ||
```groovy | ||
implementation 'com.brave.system.bar:library:1.0.1' | ||
``` | ||
dependencies { | ||
implementation 'com.brave.system.bar:library:1.0.1' | ||
} | ||
``` | ||
|
||
|
||
# 使用 | ||
--- | ||
|
||
1. 半透明 | ||
|
||
```java | ||
BarUtils.setTransparent(this); | ||
``` | ||
|
||
2. 透明 | ||
|
||
```java | ||
BarUtils.setTransparent(this); | ||
``` | ||
|
||
3. 设置颜色 | ||
|
||
```java | ||
BarUtils.setSystemBarColor(this, Color.BLUE); | ||
``` | ||
|
||
4. 其他 | ||
|
||
```java | ||
BarUtils.setSystemBarColor(Window, View, boolean, boolean, boolean, boolean, boolean, boolean, int, int) | ||
``` | ||
|
||
# 注意 | ||
|
||
- BarUtils、StatusBarUtils、NavBarUtils三类互斥,只能使用其中一种 | ||
- BarUtils 状态栏与虚拟按键栏会一起改变 | ||
- StatusBarUtils 只改变状态栏 | ||
- NavBarUtils 只改变虚拟按键栏 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters