I've created SwipingTab with two Fragments. Now I want to add menu on bottom to be fixed, static. When user swipe between tabs, that menu should not moving. Where should I create that menu. I tried on main_layout.xml, but cannot. Any suggestion or idea ??
Asked
Active
Viewed 1,760 times
1 Answers
0
This is how I would set up the main view with tabs
Then the footermenu would inflate a fragment that will be used as a menu. You can follow this Android Tab Layout with Swipeable Views to add swapeable tabs

Simon Mokhele
- 3,913
- 3
- 21
- 22
-
It gives me error: The markup in the document following the root element must be well-formed. I don;t know why, but I cannot adding anything on this layout.. – KiKo May 07 '14 at 12:33
-
You should add ViewPager and footermenu in a linearlayout or relativelayout. As you can see from the above image, LinearLayout is the root element – Simon Mokhele May 07 '14 at 16:59