setupWithViewPager
This method will link the given ViewPager and this BottomNavigationViewInner together so that changes in one are automatically reflected in the other. This includes scroll state changes and clicks.
Parameters
vp
ViewPager
open fun setupWithViewPager(@Nullable vp: ViewPager, smoothScroll: Boolean): BottomNavigationViewV13x
This method will link the given ViewPager and this BottomNavigationViewInner together so that changes in one are automatically reflected in the other. This includes scroll state changes and clicks.
Parameters
vp
ViewPager
smoothScroll
whether ViewPager changed with smooth scroll animation