Examining the ViewPager #1
- The basics
What is a ViewPager and how can it be used? - Adapter using fragments
How to write a FragmentPagerAdapter to switch between pages of fragments. - Saving fragment states
How to save memory by destroying fragments and retaining their state. - Adapter using views
How to write a PagerAdapter that uses just views instead of fragments.
Examining the ViewPager #2
- Offscreen pages
How does the ViewPager handle pages currently not visible to the user. - Responding to state changes
Getting notified whenever the displayed page changes or is incrementally scrolled. - Margin between pages
How to define a margin between pages. - Switching pages programmatically
Switching pages from code.
Examining the ViewPager #3
- Horizontal scrolling pages
Using horizontal scrolling child views inside a ViewPager. - Bezel swipe
Using bezel swipe to switch fast between pages - Fake dragging
Simulating dragging the ViewPager programmatically
Great posts, thanks!
ReplyDelete