Android creating Bottom Bar Menu

孤人 提交于 2019-12-06 09:34:33

Well the best way in my opinion , is to create a bottom bar xml file , and include it in every Activity's xml file

<include android:layout_width="fill_parent" layout="@layout/bottom_bar" />

where your bottom bar xml file name is bottom_bar.xml

This article also might help you

http://android-developers.blogspot.com/2009/02/android-layout-tricks-2-reusing-layouts.html

dave.c

There is also the include route:

Peter Knego

What you are probably looking for is one Activity with a TabBar with tabs at the top and buttons at the bottom: Android: Tabs at the BOTTOM

Then you can use different Views that correspond to Tabs instead of separate Activities.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!