I have a menu and I would like to apply the following background style:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<corners android:radius="10dip" />
<stroke android:color="@color/pink"
android:width="6dip"></stroke>
<solid android:color="@color/white"></solid>
</shape>
I have a Java class just to treat the operations related with the menu. This class extends ActionBarActivity
.
The code of my menu is the following:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.android.ExtendedActivity">
<item android:id="@+id/action_share"
android:title="Share"
android:orderInCategory="100"/>
<item android:id="@+id/action_about"
android:title="About"
android:orderInCategory="100"/>
</menu>
Does anyone know how can I set that background style to my menu?