【发布时间】:2016-03-08 10:44:02
【问题描述】:
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/purple2"
android:minHeight="56dp"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:titleTextAppearance="@style/ToolbarTitle" />
在我的 nexus 6 上,后退按钮是白色的,3 点菜单是白色的,标题是白色的。在我运行的模拟器上,API 级别 14 标题为白色,但后退箭头和点菜单为黑色。怎么会?
【问题讨论】:
-
这与 CSS 有什么关系?对于这些 API 级别,您可能有不同的主题。
-
您使用的是哪个设计支持库?哪个版本?
-
编译'com.android.support:appcompat-v7:23.2.0' 编译'com.android.support:design:23.2.0'
标签: android