diff --git a/README.md b/README.md index 5a4c7e7..1fd3716 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ An android lib for enhancing BottomNavigationView. ### Sdk Version ### `compileSdkVersion` >= 25 -### Importing to project ### +### Importing to project(choose one) ### #### Example for Gradle: #### @@ -129,10 +129,16 @@ allprojects { ``` Step 2. Add the dependency +1. old version support lib <= 27 ```groovy compile 'com.github.ittianyu:BottomNavigationViewEx:1.2.4' compile "com.android.support:design:26.+" ``` +2. new version support lib = 28 +```groovy +implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.0' +implementation "com.android.support:design:28.0.0" +``` #### Manual: #### diff --git a/README_ZH.md b/README_ZH.md index e9008a0..1e125ef 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -111,7 +111,7 @@ ### Sdk 版本 ### `compileSdkVersion` >= 25 -### 导入本库 ### +### 导入本库(选择其中一种) ### #### Gradle例子: #### @@ -127,10 +127,17 @@ allprojects { ``` 步骤 2. 添加依赖 + +1. 旧版本 support lib <= 27 ```groovy compile 'com.github.ittianyu:BottomNavigationViewEx:1.2.4' compile "com.android.support:design:26.+" ``` +2. 新版本 support lib = 28 +```groovy +implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.0' +implementation "com.android.support:design:28.0.0" +``` #### 手动导入: ####