umar
umar

Reputation: 3133

changing the background color of menu

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>

Upvotes: 2

Views: 8879

Answers (2)

Dinesh Sharma
Dinesh Sharma

Reputation: 11571

You can perform this by creating custom menus.

checkout this url for help.

Upvotes: 1

woliveirajr
woliveirajr

Reputation: 9483

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

this one too.

Upvotes: 2

Related Questions