0

Say I have a FragmentList with 10 options and when clicked it takes me to another Fragment. How would I be able to get the item selected in that list of 10 in the new Fragment? Post code if possible please.

JoeyL
  • 1,295
  • 7
  • 28
  • 50

1 Answers1

1

I believe this is similar to this question.

you can call the FramgmentManager and get any Fragment by id, then get any publically stored variables. example: what option was selected. example of getting Fragment

or possibly get the getSelectedItemId() from the ListFragment in that Fragment

Community
  • 1
  • 1
StrikeForceZero
  • 2,379
  • 1
  • 25
  • 36