-1
我在堆栈溢出中遵循了很多答案,但仍然无法找到解决问题的方法。
我按照下面的链接来改变导航抽屉的颜色:
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'。 –
它不工作..... – ojas