VerticalViewPager
VerticalViewPager copied to clipboard
Vertically ViewPager and vertically transformer for Android.
发现有2个冲突:最外层的viewpager水平滑动有冲突、最里层的recycleview不能正常上下滑动 本来viewpager有速度检测的,速度快的时候可以翻一页,但这个垂直的viewpager,必须手指一直按着滑动很长距离才能翻页,体验不爽,有遇到的吗?
I have downloading the source code and extracted the sample project as a new project but it's not working
~~~ java.lang.IllegalArgumentException: pointerIndex out of range at android.view.MotionEvent.nativeGetAxisValue(Native Method) at android.view.MotionEvent.getX(MotionEvent.java:2139) at android.support.v4.view.ViewPager.onInterceptTouchEvent(ViewPager.java:2064) ~~~ my answer: ~~~ @Override public boolean onInterceptTouchEvent(MotionEvent event) { try { boolean intercept = super.onInterceptTouchEvent(swapTouchEvent(event)); //If...
Fragment中包含ScrollView、WebView就不支持了,建议大家别用了。
I still have to swipe horizontally in order for it to scroll. Anyway to switch that to swipe vertically instead? Everything else works perfect, thank you :)
We now check for a certain y-axis touch distance and intercept if it passes the threshold. This allows us to use horizontal scrolling content such as a RecyclerView with a...
getCount return Integer.Max, for views cache, two kinds of data, when third item shows, the third item dismiss , and backgroud become grey