Android BidirectionalViewPager 一个可以横向滑动竖向滑动的双向滑动ViewPager
Posted Engineer-Jsp
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android BidirectionalViewPager 一个可以横向滑动竖向滑动的双向滑动ViewPager相关的知识,希望对你有一定的参考价值。
android BidirectionalViewPager 一个可以横向滑动、竖向滑动的双向滑动ViewPager
BidirectionalViewPager
BidirectionalViewPager is a viewpager that can slide in both directions.
XML Usage
<engineer.jsp.bidirectional.viewpager.BidirectionalViewPager
android:id="@+id/bidirectional_viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:orientation="horizontal" >
</engineer.jsp.bidirectional.viewpager.BidirectionalViewPager>
Java Code Usage
BidirectionalViewPager mBidirectionalViewPager = new BidirectionalViewPager(this);
The Listener Usage
mBidirectionalViewPager.setOnPageChangeListener(new OnPageChangeListener()
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels)
@Override
public void onPageSelected(int position)
@Override
public void onPageScrollStateChanged(int state)
);
Android Eclipse Project URL:
https://github.com/Mr-Jiang/BidirectionalViewPager/tree/master/Eclipse/BidirectionalViewPager
Android Studio Project URL:
https://github.com/Mr-Jiang/BidirectionalViewPager/tree/master/Studio/BidirectionalViewPager
Horizontal slide effect
Vertical slide effect
If you think this project is helpful to you, please give me GitHub Start or Fork to support me to continue to provide better projects!
GitHub URL:https://github.com/Mr-Jiang/BidirectionalViewPager
以上是关于Android BidirectionalViewPager 一个可以横向滑动竖向滑动的双向滑动ViewPager的主要内容,如果未能解决你的问题,请参考以下文章
Android 逆向Android 权限 ( Android 逆向中使用的 android.permission 权限 | Android 系统中的 Linux 用户权限 )