I am making a scrollable view that contains images and edittexts under each image. The images shown below do not have edittext for simplicity. Since the image is centered, it should βgrowβ and the outgoing image should be βcompressedβ.
I would like the images to change as they center. I know how to calculate the sizes and positions in the representation of each image as a scrollX function. I did not try to implement this, but I would like to hear some opinions before trying to do this.
What is the best way to do this? Will it be expensive to calculate so that 10 images (which were maximal) are loaded and constantly changed as view scrolls? Will it be volatile?
Ideas: - Calculate the size and position of each image when changing scrollX. Resize and reposition each image. - Watch out for images that will grow / shrink as they center / exit the center. Resize and resize them as a view
Thoughts? What do you think is the best way to implement this? Thanks!

source share