The original setCurrentItem method only adjusted the main image and the thumbnails always started with the first one. I added a scroll(thumbnailsContainer.getChildAt(i)) and attached it to the lifecycle of the main view so it would be executed after the main view was built.
The original setCurrentItem method only adjusted the main image and the thumbnails always started with the first one. I added a scroll(thumbnailsContainer.getChildAt(i)) and attached it to the lifecycle of the main view so it would be executed after the main view was built.