I have a ViewPager that slides through multiple full screen photos. Each photo has a caption which is an ImageView merged with TextView. I'm trying to hide/ show the TextView caption on the photo based on click action.
Problem: currently I'm using findViewById() to find the TextView within each page of the ViewPager, since there are multiple photos/ captions sharing the same layout, it only returned the 1st TextView ID, thus the hide/ show function only works on the 1st photo caption but not the rest.
Question: How do I make it work for all TextView's?
Thanks!