Example about replacing Fragments inside a ViewPager (Android)
Java
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
res - Initial commit Jan 29, 2014
src/com/pineappslab/frcontainer - Initial commit Jan 29, 2014
.gitignore -.gitignore changes Jan 30, 2014
AndroidManifest.xml - Initial commit Jan 29, 2014
LICENSE Initial commit Jan 29, 2014
Readme.md - Initial commit Jan 30, 2014

Readme.md

Fragments in a ViewPager example

This code shows how to replace Android Fragments inside a ViewPager.

Imagine the following structure:

[ Root fragment | Side fragment ]

You can replace Root fragment for another one and, at any moment, you could swipe to Side fragment. Also, it's possible to return to previous fragments by pressing back button.

In the code, I'm using support library v7 but it is not mandatory.

Download the apk file

View a video example

Contact

Twitter: @dani_lao

Google+: +danilao