View Pager in Listview

Viewpager with listview inside

You should use fragments for this. You are using a view pager. Now you should display the list inside a fragment that you will load in the activity. This answer shows how to do that. Your fragment xml will contain the listView. And the getItem of the adapter will return the fragment.

ViewPager inside Listview for all the rows

A couple of experiments indicate this is probably caused by your ViewPagers all having the same id (from the XML). Have you tried generating ids at runtime using View.generateViewId()?

ViewPager [FragmentPagerAdapter] inside ListView

In your ViewHolder you need to call getChildFragmentManager instead of getSupportFragmentManager.



Related Topics



Leave a reply



Submit