4

Using Navigation component with multiple navigation graph and BottomNavigationView similar to google navigation sample I came across such a problem.

I can't programmatically navigate from one tab in bottom navigation to another with passing argument. For example I have three nav graph and three tab in bottom navigation(one graph for each tab).

I need programmatically navigation from one tab to another so that "another" tab get argument passing from first tab.

Themelis
  • 3,624
  • 1
  • 18
  • 40
d.popovych
  • 119
  • 1
  • 7
  • I think this question has already been answered here: https://stackoverflow.com/questions/41760893/how-to-pass-data-between-tabs – UnBanned Apr 02 '20 at 10:55

1 Answers1

0

You probably need a local Database if you have lots of data to be moved from one tab to other.as well, you can pass them with Intents. but if you don't know how to implement bottom navigation bar or tabs, I suggest you to take a look at these :

https://medium.com/@suragch/how-to-add-a-bottom-navigation-bar-in-android-958ed728ef6c

https://androidwave.com/bottom-navigation-bar-android-example/

https://medium.com/@droidbyme/android-material-design-tabs-tab-layout-with-swipe-884085ae80ff

Dharman
  • 26,923
  • 21
  • 73
  • 125
mohammad jalili
  • 178
  • 2
  • 10