Android Parallax Image View
Creates effect such as vertical parallax, horizontal parallax etc. on android ImageView when it's being vertically or horizontally scrolled (moving) on the screen.
Setup
- Step 1 Add repository into root build.gradle
- Step 2 Add library dependency into app build.gradle
Usage
- Create vertical parallax image view
- Create Horizontal parallax image view
- Create and customize effect on your own
In the java/kotlin code you can set the effect (transformer) manually. There are three built-in effect classes, VerticalParallaxTransformer, HorizontalParallaxTransformer, HorizontalScaleTransformer.
Java code
You can create your own custom effect by extending ViewTransformer.