Monday, January 11, 2016
Pre-load the page to modify viewpager
We know, we viewpage there will be a pre-loaded, so to achieve relatively smooth sliding
If viewpage current FragmentA, already preloaded FragmentB, A can display the status of some of the space B can be set. So when I was in A interface operation, and how to modify the already pre-loaded with the B interface it
Reply:
With observer mode to solve
Reply:
What is meant by the observer mode
Reply:
Cancel preloaded Viewpager, and switch back and forth page, there will be Caton phenomenon, very smooth affect the user experience, so Viewpager authors did not provide such a method to cancel a pre-loaded. Recommended onpagerlistenner () method to switch monitor page, and then call the load method of response.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment