5

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?

Jordan
  • 6,083
  • 3
  • 23
  • 30
NullPointerException
  • 36,107
  • 79
  • 222
  • 382

2 Answers2

2

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.

AGrunewald
  • 1,735
  • 3
  • 16
  • 25
  • 1
    as far as the Android Documentation goes yes. You could always try to manually overwrite the options menu feature and roll your own but that would probably be more effort that it is worth. – AGrunewald Nov 25 '10 at 19:32
0

I'm not 100 percent sure what you mean? But you might be able to achieve what you want with margin and padding?

Padding would increase the size of your button

Knossos
  • 15,802
  • 10
  • 54
  • 91