https://kotlinlang.org logo
#android
Title
# android
j

J

03/26/2023, 2:42 AM
I have a question regarding paging in an app I've inherited as part of a team. We're still learning a lot about it (and about Kotlin). The app uses androidx.viewpager.widget.ViewPager and androidx.viewpager.widget.ViewPager.OnPageChangeListener to handle swiping left and right to switch pages. What I need to do is check a variable on the new page before the page is rendered so that I can make an ImageView visibile or invisible based on that variable when the page renders. Can somebody help me with the order in which these objects call functions so I know where to place my boolean checks and change the visiblity?
😶 1
not kotlin but kotlin colored 2
2 Views