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
  • 2,913
  • 5
  • 33
  • 45

2 Answers2

2

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

this one too.

Community
  • 1
  • 1
woliveirajr
  • 9,363
  • 1
  • 37
  • 48
1

You can perform this by creating custom menus.

checkout this url for help.

Dinesh Sharma
  • 14,626
  • 8
  • 43
  • 61