【发布时间】:2017-08-25 21:51:13
【问题描述】:
我在堆栈溢出中遵循了许多答案,但仍然无法找到我的问题的解决方案。
我已按照以下链接更改导航抽屉的颜色:
Navigation drawer change color
我按照以下方法更改溢出菜单的颜色:
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
style="@style/MyToolbarTheme.Base"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:background="@color/colorPrimary"
app:titleTextColor="@android:color/white"
/>
在 Styles.XML 中
<style name="MyToolbarThemeSimple.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="actionOverflowButtonStyle">@style/overflow_simple</item>
</style>
<style name="overflow_simple" parent="MyToolbarThemeSimple.Base">
<item name="android:color">@color/windowBackground</item>
<item name="android:background">@color/windowBackground</item>
</style>
【问题讨论】:
-
使用
Theme.AppCompat.Light.NoActionBar代替父Theme.AppCompat.NoActionBar。 -
它不工作.....
标签: android android-toolbar navigation-drawer