Appcompat工具栏不为微调器提供样式

时间:2015-01-07 16:50:20

标签: java android xml android-appcompat

我需要工具栏中的所有图标和文字都是浅色的,溢出菜单,微调器和抽屉(图中未显示)都有浅色背景和深色文本。 (使用android主题)

为什么只有溢出来做我喜欢的,但抽屉(未显示)和旋转器保持黑暗?

任何想法都有帮助! (尽管我觉得我已经尝试了一切)

必须是this

的IDENTICAL

styles.xml

<resources>

    <style name="AppTheme" parent="Theme.AppCompat.Light">
        <item name="colorPrimary">@color/teal500</item>
        <item name="colorPrimaryDark">@color/teal700</item>
        <item name="colorAccent">@color/accent</item>
        <item name="windowActionBar">false</item>
        <item name="actionBarWidgetTheme">@style/Theme.AppCompat.Light</item>
    </style>

</resources>

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"
    android:id="@+id/toolbar"
    ...
    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
    app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>

Why is it doing this?

0 个答案:

没有答案