我想在活动工具栏中更改菜单指示器颜色,现在它的颜色不是白色或者它有alpha选项,我想成为白色
我正在使用AppCompatActivity,这是我的工具栏xml代码
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="@color/primary"
android:elevation="2dp"
android:theme="@style/Base.ThemeOverlay.AppCompat.Dark"
xmlns:android="http://schemas.android.com/apk/res/android" />
由于
答案 0 :(得分:1)
您可以使用白色自定义溢出图标,并在您的主题样式中应用该图标,如下所示
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:actionOverflowButtonStyle">@style/CustomOverFlow</item>
</style>
<style name="CustomOverFlow" parent="@android:style/Widget.Holo.ActionButton.Overflow">
<item name="android:src">@drawable/your_custom_icon</item>
</style>
答案 1 :(得分:0)
您只需要更改colorControlNormal属性。
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorControlNormal">#FFFFFF</item>
</style>