0

I'm trying to make a fragment consist of a listView

And when I click the listView's item, it would go to another listview

but if I use fragment with "replace" method

I cannot go back to the previous listview

And I just can't use Activity to Activity because the fragments are in the NavigationDrawer

Can someone tell me how to do that?

user3810824
  • 63
  • 1
  • 4

1 Answers1

0

I think this solution could fix your problem. it's kinda similar problem to handle back button inside fragment Android Fragment handle back button press

Community
  • 1
  • 1
Adiyat Mubarak
  • 10,279
  • 4
  • 34
  • 50