Skip to content

Commit

Permalink
Viewpager2 v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zguop committed Jun 7, 2020
1 parent 1251d50 commit 4fba815
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README_pager2.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
## 使用步骤

#### Step 1.依赖banner

Gradle
```groovy
Expand All @@ -80,7 +81,6 @@ dependencies{
compile project(':pager2banner')
```


#### Step 2.xml
```xml
<com.to.aboomy.pager2banner.Banner
Expand All @@ -91,7 +91,6 @@ compile project(':pager2banner')

#### Step 3.自定义RecyclerView.Adapter


```java
//自定义adapter
public class ImageAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
Expand All @@ -110,10 +109,8 @@ public class ImageAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
}
```


#### Step 4.在页面中使用Banner


```java

@Override
Expand Down Expand Up @@ -152,7 +149,6 @@ public class ImageAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

```


### 关于ViewPager切换动画

pager2banner 只内置了 ScaleInTransformer ,这个比较常用。
Expand All @@ -174,7 +170,6 @@ demo里集成了以下两个ViewPager切换动画,请运行Sample查看动画

```


### 如何自定义Indicator
```java
/**
Expand Down

0 comments on commit 4fba815

Please sign in to comment.