I want to have a tab view, each tab contains a view pager which in turn contains a listview. Intrinsically, the swipe left or right should be handled by the view pager inside a tab rather than swithching a tab to its sibling tab. How should I approach this use case most neatly? BTW, I am not using ActionBar. thank you
Asked
Active
Viewed 102 times
0
-
There are so many examples, google it first. – Anshul Tyagi Jul 14 '15 at 09:01
-
Tab's inside activity / fragment ? – Anoop M Maddasseri Jul 14 '15 at 09:04
-
inside an activity, i am not using fragment. thank you – DayDayHappy Jul 14 '15 at 09:16
1 Answers
0
I have done it in my current project, except i have made tabs and each tab has a ListView.
First you will have to make an Activity which will have ViewPager and SlidingTabLayout.This will help yo do that.
Second you will need to create fragments which will again have ViewPager and another fragment which will have ListView inside it.(fragment inside a fragment) Have a look here also

rusted brain
- 1,052
- 10
- 23