Skip to content

Commit 2227ed2

Browse files
committed
update readme
1 parent 3715771 commit 2227ed2

4 files changed

Lines changed: 17 additions & 1 deletion

File tree

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ I wrote this library just because I want a lightweight slider.
1919

2020
```groovy
2121
dependencies {
22-
compile 'com.cpacm.simpleslider:library:2.1.0'
22+
implementation 'com.cpacm.simpleslider:library:2.1.0'
2323
}
24+
25+
if module has conflict, use
26+
如果有组件冲突,可以使用以下方法导入
27+
dependencies {
28+
implementation (com.cpacm.simpleslider:library:2.1.0){
29+
exclude module: 'appcompat-v7'
30+
}
31+
}
32+
2433
```
2534

2635
### Add the slider to your layout
@@ -50,6 +59,7 @@ circlePageIndicator.setViewPager(simpleSlider);
5059
### Basic
5160
![indicator](https://raw.githubusercontent.com/cpacm/SimpleSlider/develop/pic/BasicSlider.gif)
5261

62+
两种轮播器,一种是普通模式,一种是回廊模式。
5363

5464
### Indicator
5565

@@ -66,6 +76,8 @@ The above indicators modified from [ViewPagerIndicator](https://github.com/JakeW
6676

6777
Modify from [SpringIndicator](https://github.com/chenupt/SpringIndicator)
6878

79+
多种样式的指示器,可以根据场景选择适合的样式使用。
80+
6981
**You can customize the indicator implements `PageIndicator`**
7082

7183
### Transform
@@ -75,7 +87,11 @@ The above transforms come from [AndroidImageSlider](https://github.com/daimajia/
7587

7688
**You can customize the transform extends `BaseTransformer`**
7789

90+
丰富的过场动画(上面的回廊式轮播就可以通过设置 Transform 来实现)
91+
7892
## **Note:**
93+
无限轮播最低要求有三张页面。
94+
7995
**In the infinite loop mode, at least three sliders.**
8096
**Android API >= 3.0**
8197

pic/BasicSlider.gif

563 KB
Loading

pic/IndicatorSlider.gif

825 KB
Loading

pic/TransformSlider.gif

1.73 MB
Loading

0 commit comments

Comments
 (0)