Louis Tsai
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

--

--

Louis Tsai
Louis Tsai

Written by Louis Tsai

if someone can give me a lesson of how to adult that’d be great thank you

No responses yet