Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ooftf committed Jun 17, 2019
2 parents 41f9e64 + 22fc4b1 commit 5b4005f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ dependencies {
}

```
* Java部分
```kotlin
verticalPagerLayout.setAdapter(PagerAdapter())
```
## 使用方式2
* XML布局
```xml
<com.ooftf.vertical.nested.NestedVerticalPagerLayout
android:id="@+id/verticalViewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
```
* 如果Item布局包含Vertical滚动布局,为了解决触摸冲突问题,需要是Nested系列控件

* Java部分
```kotlin
verticalPagerLayout.setAdapter(PagerAdapter())
Expand Down

0 comments on commit 5b4005f

Please sign in to comment.