Библиотека для создания анимации переворачивающихся страниц или карт/карточек во ViewPager.
Пример:
// Get ViewPager2 and Set Adapter myViewPager2 = findViewById(R.id.myViewPager2); pagerAdapter = new MyPagerAdapter(this); myViewPager2.setAdapter(pagerAdapter); // Create an object of page transformer CardFlipPageTransformer2 cardFlipPageTransformer = new CardFlipPageTransformer2(); // Enable / Disable scaling while flipping. If false, then card will only flip as in Poker card example. // Otherwise card will also scale like in Gallery demo. By default, its true. cardFlipPageTransformer.setScalable(false); // Assign the page transformer to the ViewPager2. myViewPager2.setPageTransformer(cardFlipPageTransformer);
Статья: https://android.jlelse.eu/easyflipviewpager-the-flip-animations-for-your-viewpager-fd66b34f4703
Исходники: https://github.com/wajahatkarim3/EasyFlipViewPager