Reputation: 1041
I'm using Tablayout
in fragment, and there is no problem.
but when i click on items and open details fragment (i add the new fragment in back stack) after pop back stack, The Tablayout
root fragment just show tabs and viewPager is empty.
How can i solve this problem?
Upvotes: 2
Views: 1258
Reputation: 1041
I solved problem. should use getChildFragmentManager()
instead getSupportFragmentManager()
to assign view pager adapter
Upvotes: 3