android-layouthtml-frames

Dividing screen in android like frames in html


I am making an android application. There i want a common navigation menu on every activity like frames in html. I want the menu at the left (say 20%) area and other navigation screens on the right (say 80% area)

please help me out.


Solution

  • You should use two fragments, that way you keep the menu in one fragment and only change the activity in the other, I should not be difficult to find an example on internet since it is very common in tablets. http://developer.android.com/guide/components/fragments.html