aurelhubert / ahbottomnavigation

A library to reproduce the behavior of the Bottom Navigation guidelines from Material Design.
3.83k stars 682 forks source link

change the tab on swipe #369

Closed tank777 closed 6 years ago

tank777 commented 6 years ago

how can we change the tab when user swipe left or right?

jahirfiquitiva commented 6 years ago

You should use a ViewPager for that. It has nothing to do with the library. Also, Material Design guidelines advice not to do that: you should use a TabLayout instead

tank777 commented 6 years ago

@jahirfiquitiva Thank you but I got the solution for that. I have used the "AHBottomNavigationViewPager" and set the setPagingEnabled(true).

jahirfiquitiva commented 6 years ago

Great. Then you can probably close this issue