Reputation: 825
Is it possible to have a ViewPager (which pages between fragments) within another fragment?
To answer my own question some have found "hacky" solutions with a degree of success: Display fragment viewpager within a fragment, and there have been semi "official" answers that fragments within fragments are not supported. Both of these questions were asked a year or so ago, so I was hoping support for fragments within fragments may have progressed somewhat. Is this the case?
Thanks
Upvotes: 1
Views: 404
Reputation: 12444
Since ViewPager extends ViewGroup
, so yes you can.
and you can embed Fragments
into Fragment
Upvotes: 1