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

Discussion in 'Android Questions' started by agb2008, Apr 17, 2015.

  1. agb2008

    agb2008 Member Licensed User

    I am adding simple menu for my application using following code in Activity_Create Sub:
    Code:
    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...
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You cannot change the way it looks without creating a completely custom menu.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice