Custom go to watch page

I know there are a lot of questions about Timely UI. I am currently working with ViewPager , in which I have three pages with different backgrounds (green, yellow, red). I would like to implement the transition between them, as shown in the figure below. I know how to implement a custom transition for ViewPager, but I don't know what is the logic for this particular transition.

Does anyone have any experience?

enter image description here

+5
source share
1 answer

This effect looks very beautiful. This blog post represents a library to do this with a bitmap. http://andraskindler.com/blog/2014/parallaxviewpager_parallax_background_effect_for_the_viewpager/

I assume that this can be done simply by using this library and a properly created image file. Interestingly, since it looks like gradients on each page and gradients between each page (gradient gradients), if this can be done using drawable. Perhaps it would be easier to make it work well for different screen sizes.

I would start by working with the code provided in the library. https://github.com/andraskindler/parallaxviewpager/blob/master/src/main/java/com/andraskindler/parallaxviewpager/ParallaxViewPager.java

0
source

Source: https://habr.com/ru/post/1200118/


All Articles