Android-squired icon in action bar after support library update
I want to have a checkmark icon in the action bar. The code I'm using:
In menu_actionbar.xml:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:title=""
android:id="@+id/action_check"
android:icon="@drawable/ic_done_white_48dp"
android:orderInCategory="100"
app:showAsAction="always"/>
</menu>
In action:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu_actionbar, menu);
return true;
}
This is how it should look and how it has been looking for a while until some last update of the support library (not sure which one): correct
This is what now looks like on the device: Wrong
+3
source to share
No one has answered this question yet
See similar questions:
or similar: