我正在使用新的Toolbar
而不是ActionBar
。 在Android 5.0的一切都只是罚款:工具栏不显示溢出图标
4.4它不显示的菜单图标(虽然功能是存在的):
这是我使用的toolbar.xml
:
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/HeaderBar"
app:theme="@style/ActionBarThemeOverlay"
app:popupTheme="@style/ActionBarPopupThemeOverlay"
android:id="@+id/toolbar_actionbar"
app:titleTextAppearance="@style/ActionBar.TitleText"
app:contentInsetStart="?actionBarInsetStart"
android:layout_width="match_parent"
android:layout_height="?actionBarSize" />
我也面临同样的问题,并且此代码出现此错误 - >找不到与给定名称相匹配的资源:attr'actionBarIconColor'。 – WISHY 2015-03-14 07:24:02