Skip to content

Commit

Permalink
1.2.0 update version, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeterry committed Oct 22, 2017
1 parent 6dd4bfc commit 911bfa3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Inherited to the CoordinatorLayout, in the following components used CollapsingT
Add the following to your build.gradle:
```groovy
dependencies {
compile 'cn.hugeterry.coordinatortablayout:coordinatortablayout:1.1.0'
compile 'cn.hugeterry.coordinatortablayout:coordinatortablayout:1.2.0'
}
```

Expand Down Expand Up @@ -88,9 +88,18 @@ Finish, enjoy it.

![show](showUI/show4.png)

`setTransulcentStatusBar(Activity activity)`:Set translucent status bar,Support android4.4 and above.
`setTranslucentStatusBar(Activity activity)`:Set translucent status bar,Support android4.4 and above.
```java
mCoordinatorTabLayout.setTransulcentStatusBar(activity);
mCoordinatorTabLayout.setTranslucentStatusBar(activity);
```

### Set translucent navigation bar

![show](showUI/show5.jpg)

`setTranslucentNavigationBar(Activity activity)`:Set translucent navigation bar,Support android4.4 and above.
```java
mCoordinatorTabLayout.setTranslucentNavigationBar(activity);
```

### Set back enable
Expand Down
15 changes: 12 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CoordinatorTabLayout是一个自定义组合控件,可快速实现TabLayout与Co
在gradle文件中加入下面的依赖:
```groovy
dependencies {
compile 'cn.hugeterry.coordinatortablayout:coordinatortablayout:1.1.0'
compile 'cn.hugeterry.coordinatortablayout:coordinatortablayout:1.2.0'
}
```

Expand Down Expand Up @@ -89,9 +89,18 @@ dependencies {

![show](showUI/show4.png)

`setTransulcentStatusBar(Activity activity)`:设置头部状态栏透明,在android4.4及以上版本生效
`setTranslucentStatusBar(Activity activity)`:设置头部状态栏透明,在android4.4 及以上版本生效
```java
mCoordinatorTabLayout.setTransulcentStatusBar(activity);
mCoordinatorTabLayout.setTranslucentStatusBar(activity);
```

### 设置导航栏透明

![show](showUI/show5.jpg)

`setTranslucentNavigationBar(Activity activity)`:设置导航栏透明,在android4.4 及以上版本生效
```java
mCoordinatorTabLayout.setTranslucentNavigationBar(activity);
```

### 添加返回
Expand Down
6 changes: 3 additions & 3 deletions coordinatortablayout/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.1.0"
version = "1.2.0"

android {
compileSdkVersion 25
Expand All @@ -11,8 +11,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 25
versionCode 6
versionName "1.1.0"
versionCode 8
versionName "1.2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
Expand Down
Binary file added showUI/show5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 911bfa3

Please sign in to comment.