Skip to content

rizqiaryansa/MyViewPager2

Repository files navigation

MyViewPager2

This sample shows how to use ViewPager2 with RecyclerView and TabLayout (Mediator), for manage your own state saving by ViewModel

Description

As the former ViewPager, the newer ViewPager2 is generated from ViewGroup. There are few differences between them. Here's an image that depicts the ViewPager2: alt text

Advantages

  • Support RTL direction (Right to Left)
  • Support Adapter with RecyclerView
  • Support Orintation Horizontal/Veritcal
  • Support PageChangeCallback (More efficient code)
  • etc

Screenshot

alt text

References

Releases

No releases published

Packages

No packages published

Languages