Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i change the size of the buttons of my options menu?

I have an options menu (it pops up when you press the menu key of the phone) with 5 buttons, all of them with one 48x48 image and text.

Now the five buttons are displayed in two rows, but I want to reduce the size of them to fit all five buttons into one row.

How can I achieve this?

Can I do it with parameters in the menu's layout XML file?

like image 954
NullPointerException Avatar asked Nov 06 '22 06:11

NullPointerException


1 Answers

As far as I know the menu is using a standard layout of max three buttons next to each other, to make it tough friendly if you read this http://developer.android.com/guide/topics/ui/menus.html it says you can add max 6 menu items in the normal menu after that they will move into the extended menu, so 3 items per line total of 6 items on two lines. It's just how Android is designed.

like image 118
AGrunewald Avatar answered Nov 15 '22 09:11

AGrunewald