Update example in README
This commit is contained in:
parent
c5a0edeb46
commit
1979b10df6
|
@ -1,11 +1,11 @@
|
|||
Implementation of a ViewPager that supports both vertical and horizontal swiping.
|
||||
Implementation of a ViewPager that supports both vertical and horizontal swiping.
|
||||
It's based on the support library 27.1.1 and uses the same package as ViewPager
|
||||
in order to use its interfaces and make it compatible with adapters and listeners.
|
||||
|
||||
A pager can be instantiated either from XML, optionally providing `android:orientation`:
|
||||
|
||||
```xml
|
||||
<android.support.v4.view.DirectionalViewPager
|
||||
<androidx.viewpager.widget.DirectionalViewPager
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"/>
|
||||
|
|
Reference in New Issue
Block a user