Android: creating a custom menu on the bottom

2019-08-10 03:10发布

问题:

I would like to create a custom made menu on the bottom of the screen, This menu will be as buttons and, it will always be visible first, if the user scrolls down, it will be visible, and scrolls upp.

How is this possible?

回答1:

Is this menu always visible? or does it only appear when the "menu" button is pressed?

An easy way to do this is to use a RelativeLayout as your main ViewGroup. Create a second ViewGroup (LinearLayout, RelativeLayout... or whatever) that contains your menu items and anchor the whole group to the bottom of the screen. If you were to then, put a ListView above that second group it would occupy all the space above your menu controls and the menu controls themselves would always be visible.

Hope that was helpful.



回答2:

are using trying any thing similar to Tab View? use tabview and the end of the page by that u can always make use of that visible.. if you want it as button then go for listview and relative layout



标签: android menu