Comments (2)
this issue has been resolved. Seems that the VerticalViewPager has nothing wrong. The reason for this is that MyPageAdapter did not rewrite the method 'getItemPosition()' from the super class, and the default implementation assumes that items will never change position and always returns.
So, rewrite this method like this:
int index = mdata.indexOf(object);
return index == -1 ? POSITION_NONE : index;
Hope useful for others.
from verticalviewpager.
also, your adapter should extend FragmentStatePagerAdapter (http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html) instead of PagerAdapter.
from verticalviewpager.
Related Issues (20)
- VerticalViewPager with ViewPager HOT 2
- With added a ListView to VerticalViewPager , I found event conflict. HOT 1
- Gradle: Could not find element /manifest/application.
- Adding View Pager indicator HOT 1
- VerticalViewPager scroll doesnt work when listview is used inside one of the fragment. HOT 7
- setOnPageChangeListener doesn't work HOT 1
- setUserVisibleHint don't get triggered in Fragments when they are invisible
- Weird Scroll Glitch with Clickable views HOT 2
- Allow the changing of ViewPager speed when scrolling
- Getting Crashed on Android OS Version below 5.0 HOT 1
- Webview scroll issue
- How to disenable the Vertical Scrolling when i need HOT 1
- fk
- key event bug HOT 1
- I met a problem,Please help me HOT 1
- setCurrentItem(int item) is not working
- IllegalStateException
- the verticalviewpager cannot work with another viewpager
- get a random pointerIndex out of range exception occasionally HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from verticalviewpager.