We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
In your example, there could be a way VerticalPagerAdapter could extend FragmentPagerAdapter.
VerticalPagerAdapter
FragmentPagerAdapter
For now, I have to override your instantiateItem() like this :
pager.setAdapter(new DoubleViewPagerAdapter(getApplicationContext(), verticalAdapters){ @Override public Object instantiateItem(final ViewGroup container, int position) { VerticalViewPager childVP = (VerticalViewPager) super.instantiateItem(container, position); childVP.setId(R.id.dummyId); return childVP; } });
This way I dont have an error at instantiation, but the horizontal swiping is not working yet.
Maybe you can change your code and set childVP an id ? ViewPagers need an id to work with fragments.
Thanks.
The text was updated successfully, but these errors were encountered:
I actually had to restart from scratch. Here is my lib. I linked up yours in the readme for when you don't need fragments.
Sorry, something went wrong.
Thank you, Dan! I was about to write my own too! juliome10 should add this in README to work with Fragments.
No branches or pull requests
Hi,
In your example, there could be a way
VerticalPagerAdapter
could extendFragmentPagerAdapter
.For now, I have to override your instantiateItem() like this :
This way I dont have an error at instantiation, but the horizontal swiping is not working yet.
Maybe you can change your code and set childVP an id ?
ViewPagers need an id to work with fragments.
Thanks.
The text was updated successfully, but these errors were encountered: