How to resize an image when it’s scrolled over in android?

Currently i’m using RecyclerView to display 3 images horizontally.

I would like the view to look like so:

Scrollable layout

So that when I scroll to the left/right the images resize depending on their position in the row (centre image being the largest).

Is there a way to do this in android, using RecylcerView or something else?

Thank you for any help

Source: java

Leave a Reply