Here is my menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:tools="http://schemas.android.com/tools"
tools:ignore="HardcodedText"
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/general_settings"
android:title="Settings" />
<item
android:id="@+id/settings_alert"
android:title="Profile List" />
<item
android:id="@+id/settings_alarm"
android:title="Alarm List" />
<item
android:id="@+id/settings_apps"
android:title="App List" />
</menu>
There is no android:background in menu. I want to be able to choose a menu option and have it show a different background color until the next choice is made.
I am able to use android:isCheckable=true, but then it shows checkboxes which I don't want.
I have also tried working with onPrepareOptionsMenu and onMenuOpened, but setBackgroundColor isn't a attribute.