I want to change fragments inside a ViewPager which is below a 3 column ActionBar (I chose the standard 3 column starting project in the new wizard). I have researched whole stackoverflow and couldn’t find a good solution…
Basically I have 3 screen A B C. On screen B I want to implement a button to switch to another page:
1) A B C
2) A X C
With the new Android APIs there should be an easy way of doing it right(Nested Fragments)? Please help with a small code example.
Use ViewFlipper http://developer.android.com/reference/android/widget/ViewFlipper.html inside the layout.
onButtonClick you can call
And also you can add animation while page transition.