to top
Android APIs
Sample Code >

app - API 13+ Support Demos

← Back

This section includes samples showing the use of the application package features of the static support library fir API 13 or later.

Fragment

Action Bar Tabs Pager
Demonstrates the use of fragments to implement switching between ActionBar tabs, using a ViewPager to manager the fragments so that the user can also fling left and right to switch tabs.
Fragment Pager Support
Demonstrates the use of the v4 support class ViewPager with a FragmentPagerAdapter to build a user interface where the user can fling left or right to switch between fragments.
Fragment State Pager Support
Demonstrates the use of the v4 support class ViewPager with a FragmentStatePagerAdapter to build a user interface where the user can fling left or right to switch between fragments. This versions of the adapter doesn't keep around the fragment instances that ViewPager has destroyed.

Files