我正在尝试将这个工具栏的颜色完全改为白色,就像安卓棒棒糖设置中的操作栏颜色一样,但是我们的视图或者可能是安卓的bug中存在一个错误或类似的东西!我的工具栏:
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:popupTheme="@style/Theme.AppCompat.Light"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />
样式:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
并且样式箭头:
<style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
<item name="spinBars">true</item>
<item name="color">@android:color/white</item>
</style>
结果:
如您所见,名称是黑色的!并且在添加这些之后,搜索图标有点黑色。(您可以试试;))
但我需要完全白色的颜色和白色的操作。
如何实现这一点?
我已经尝试了您能想到的一切!