UPDATE - Added experimentation result
Is it possible to implement an ExpandableListView to have a viewpager child?
I tried to put viewpager as a child in ExpandableListView but it is not showing :( I also tried to add it under ScrollView but same result so I think it is a problem being under a scrollable view? But when I removed ScrollView it showed up. What can I do so they can go together?
This is what I am aiming for to do
And this is what happen when I tried to implement on my own code.
P.S. This is just a sampler and not yet finished. I have 3 children and my layout displayed thrice also with each item inside
I made a sample in Java. Hope that helps!
activity_main.xml:
expanded_list_group.xml:
list_child_pager.xml:
list_pager_item.xml:
integers.xml:
ChildItemSample.java
MainActivity.java:
ExpandableListPagerAdapter.java:
Another sample adapter that has ViewPager child (Without fragment)
can you check this API https://developer.android.com/reference/android/widget/ExpandableListView
A view that shows items in a vertically scrolling two-level list