1

i am using different fragments in my app. I want to reuse same fragments for some purpose. For example i have fragemntA with a listview. On list item click i want to add the same fragment again with some other data populated in that list.Again when on item click i want to launch another instance of the same fragment with another data. Like this i have to add many fragments. It is decided by response from server. And i want to add these fragemnts to backstack as well. Is it possible? Then how?

andro-girl
  • 7,989
  • 22
  • 71
  • 94

1 Answers1

0

The FragmentManager class is what you are looking for. Here is a post that shows how to use it.

Community
  • 1
  • 1
PMerlet
  • 2,568
  • 4
  • 23
  • 39