0

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 ??

KiKo
  • 1,668
  • 7
  • 27
  • 56

1 Answers1

0

This is how I would set up the main view with tabs

See image below

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