Transition Fragments on return

Asked

Viewed 32 times

0

I have a Drawerlayout that controls my Ragments. But I have the following problem: if I am in Fragment A the corresponding menu item is highlighted, when selecting Fragment b , the item is also highlighted correctly. But when you click the back button, although it goes back from B to A normally, the selected menu item does not change. Is there any function or method that controls this?

  • Navigationview.setCheckedItem(@Intres id);

  • Unfortunately it didn’t work

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.