1 min readFeb 16, 2019
OK now I think I know what you want to do. All you need to do is to listen to click event for the TabLayout
, and then use “which tab has just been clicked” to trigger the correct navigation action. In fact, this is just the very normal way to using the Navigation Component, and the only different bit is that instead of an onClick
of a Button
, it wait for an onClick
of a TabLayout.Tab