Как использовать TabLayout с ViewPager2 в Android ⇐ JAVA
-
Гость
Как использовать TabLayout с ViewPager2 в Android
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?
Источник: https://stackoverflow.com/questions/553 ... in-android
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?
Источник: https://stackoverflow.com/questions/553 ... in-android
Мобильная версия