I want to create a custom gallery in which the center most view in the gallery is showing a zoom out animation. So when I scroll my gallery, the items coming to the center will get zoomed. So what I need to know is :
- How can I find the center item in a gallery.(If 5 items are displayed, I need the 3rd item as center one).
- How can I animate it to get a smooth bulging effect when scrolling happens?
With the help of a pipe kind of structure using queue, i got it when combined with addViewToLayout Method of Gallery.
Code :
Custom Gallery class
Pipe class :