0

I am using the Android Jetpack Navigation component. My code has 3 tabs and a BottomNavigationView that is following NavigationAdvancedSample of google.

enter image description here enter image description here

Is there any way that I can change the tab from Home->Leaderboard when I clicking on the About button like when I perform click to Leaderboard on BottomNavigationView?

Thank you in advance!

  • @HenryTwist oh yes! That is exactly what I am looking for! But how can I pass some arguments to the second tab when I clicking on the About button? – Văn Nhật Phan Jun 27 '21 at 09:21
  • 1
    Glad it helped! Make sure in future you research your questions. That was the first result when I searched the exact title of *this question*. In regards to arguments, if you're using the navigation component there's plenty of tutorials etc out there that should cover that, otherwise if you're stuck on a particular point you can ask another question. – Henry Twist Jun 27 '21 at 09:28
  • I have exactly the same question as the original poster: with the Navigation component, how do I change to another BottomNavigation tab programmatically? I fail to find the answer in the linked post. – Kai Hatje Feb 18 '22 at 22:31

0 Answers0