You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also added in a bit of code to send the current page index to the renderPage function as a third property. This has been very helpful in my project, I'm open to discussion about leaving that in or taking it out, what do you think?
The text was updated successfully, but these errors were encountered:
The parameter pageID just means page index for simple DataSource. I just want to keep renderPage() depends on data, not on ViewPager status. Could you share your scenario to make a better design?
In my project I have a video on each page. The videos all autoplay when the page is active and they stop when you transition away from that page. Passing the current page index allows me to handle conditional logic to test if the page being rendered is the currently active page.
Is there a way to handle this without modifying the renderPage function?
by @christopherabouabdo mentioned here #32
The text was updated successfully, but these errors were encountered: