Skip to content

rizqiaryansa/MyViewPager2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

ViewPager2 with RecyclerView and TabLayout

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages