I want to use com.google.android.material.tabs.TabLayout component with Android’s new ViewPager implementation androidx.viewpager2.widget.ViewPager2. However, the setupWithViewPager(..) method provided by TabLayout supports only the old ViewPager implementation. Is there a way to bind a TabLayout to a ViewPager2 component easily?
Discy Latest Questions
I came to know about ViewPager2 and Tried to implement it but didn’t found any proper example. Can anyone tell me how can I use it. I am looking for hint, not an example.