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
java android


source to share


No one has answered this question yet

See similar questions:

13
Toolbar icon scripts after changing on Android SDK 26

or similar:

947
Android Studio: add jar as library?
784
How do I add a library project to Android Studio?
673
How to call a method after a delay in Android
566
Updating Eclipse with Android Development Tools v. 23
559
Android Network Libraries Comparison: OkHTTP, Retrofit and Volleyball
391
Settings icon for Android app
337
Can't find Theme.AppCompat.Light for new Android ActionBar support
274
Android - Launcher Icon Size
2
Wrong overflow menu layout
0
Android NullPointerException while accessing ActionBar



All Articles
Loading...
X
Show
Funny
Dev
Pics