问题:
任何人都可以解释原因吗? 工具栏文本未正确显示。
尝试:
谢谢!
TOOLBAR LAYOUT
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar android:id="@+id/toolbar_main"
android:layout_width="match_parent"
app:popupTheme="@style/AppTheme.PopupOverlay"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorPrimary"
app:titleTextColor="@color/colorPrimaryDark"
android:elevation="7dp"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" />
MENU LAYOUT
<?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:id="@+id/action_search"
android:icon="@drawable/ic_search_white_24px"
app:showAsAction="always"
android:title="Search"/>
</menu>