Hi everyone, hope you are all good and be happy after new update of kodular. This extension allow you to create a view pager with parallax effect. There are two types of modes available in the properties. You can use any of them. You can head to the preview section of the topic for watching preview of the view pager.
Now Let see some blocks and their doecumentation.
There are two types of interpolator that apply some effect while transforming the pages.
This event raises when the pages changes.
Add the view component in view pager
Remove the page at given position from view pager.
Select the page at given position.
This block creates the view pager to the given layout or arrangement in
Remove all the pages from the view pager.
Returns the current selected page index.
Propert for setting and getting the interpolator factor. In easy words scale factor are some amount that customize the animation.
Propert for setting and getting the mode or parallax effect type.
Propert for setting and getting the interpolator of the view pager.
I hope you understood the documentation now let see how we can implement this in our apps.
Changing some properties so blocks can be reduced.
Here I have used dynamic components extension for making and adding pages dynamically.
It is very simple ot add in our app.
Let see output now
ParallaxPager.apk (5.3 MB)
ParallaxPager.aia (309.7 KB)
com.sumti1334.parallaxviewpager.aix (13.3 KB)
Suggestion and issue are welcome
If you like the extension then like the topic
Thank You All
If you like my work then donate if you can