Android Question Menu in application too wide - any way to control ?

agb2008

Member
Licensed User
Longtime User
I am adding simple menu for my application using following code in Activity_Create Sub:
B4X:
    Activity.AddMenuItem("Method")
    Activity.AddMenuItem("Help")
    Activity.AddMenuItem("Reset")
    Activity.AddMenuItem("Exit")
It's working as expected except that resulting menu is a bit wide... All menu items (labels) occupied only
less then 40% of menu width - rest just empty space for each entry... Could you please advice if there is any way to control how menu would look like - and is it possible to make it for example as wide as longest menu entry i.e. "Method" in my case...
 
Top