2

Hello i have the following xml for menu i want to set the background color black like over here . The other thing i want to set if the buttons are increased they should remain in one row instead of moving to next row . Thanks

<menu xmlns:android="http://schemas.android.com/apk/res/android">


         <item android:id="@+id/Quit"
        android:title="Quit"
        android:icon="@drawable/icon" />

        <item android:id="@+id/settings"
        android:title="Settings"
        android:icon="@drawable/icon" />


        <item android:id="@+id/services"
        android:title="Services"
        android:icon="@drawable/icon" />

        <item android:id="@+id/web"
        android:title="web"
        android:icon="@drawable/icon" />




</menu>
umar
  • 3,073
  • 5
  • 35
  • 45

2 Answers2

2

For the background color, look at this answer and it's comments.

this one too.

Community
  • 1
  • 1
woliveirajr
  • 9,433
  • 1
  • 39
  • 49
1

You can perform this by creating custom menus.

checkout this url for help.

Dinesh Sharma
  • 11,533
  • 7
  • 42
  • 60