Java Android-支持库更新后actionbar中的挤压图标
我想在actionbar中有一个复选标记图标。 我使用的代码是: 在菜单_actionbar.xml中:Java Android-支持库更新后actionbar中的挤压图标,java,android,Java,Android,我想在actionbar中有一个复选标记图标。 我使用的代码是: 在菜单_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 and
<?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>
下面是它应该是什么样子,以及在最近的支持库更新(不确定到底是哪一个)之前的一段时间内它是什么样子的:
以下是现在设备上的情况:目前也有同样的问题。刚刚更新了代码以使用v7:26.0.0支持libs可能的重复
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu_actionbar, menu);
return true;
}