Tuesday 15 May 2012

android - How to change the ripple color of the DrawerToggle (back arrow) -


I want to change the wave color of the drawer toggle, but I could not find any way to do this. My style file looks like this other menu item changes the background, but does not work for the back arrow. How do I change the wave color of the drawer arrow

  & lt; Style name = "Aaptim" parent = "theme.AppCompat.Light.NoActionBar" & gt; & Lt ;! - Customize your subject here - & gt; & Lt; Item name = "color primary" & gt; # FF0000 & lt; / Item & gt; & Lt; Item name = "color primary diary" & gt; # 660000 & lt; / Item & gt; & Lt; Item name = "android: textColorPrimary" & gt; #fffff & lt; / Item & gt; & Lt; Item name = "android: textColorSecondary" & gt; @Android: color / white & lt; / Item & gt; & Lt; Item name = "android: actionMenuTextColor" & gt; @Android: color / white & lt; / Item & gt; & Lt; Item name = "Dover Arrowstyle" & gt; @Style / DwaroAirOstyle & lt; / Item & gt; & Lt; Item name = "android: actionBarItemBackground" & gt; @drawable / my_ripple_borderless & lt; / Item & gt; & Lt; Item name = "Selectable item background" & gt; @drawable / my_pipple & lt; / Item & gt; & Lt; Item name = "Android: Selectable item background" & gt; @drawable / my_pipe & lt; / Item & gt; & Lt; Item name = "listWatch this backhand indicator" & gt; @drawable / my_epepel & lt; / Item & gt; & Lt; Item name = "android: listChoiceBackgroundIndicator" & gt; @dicture / my_ripple & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "Druarerase style" parent = "widget.AppCompat.DrawwerArrowToggle" & gt; & Lt ;! - & lt; Item name = "spin burs" & gt; False & lt; / Item & gt; - & gt; & Lt; Item name = "color" & gt; @ Color / drawer_icon_color & lt; / Item & gt; & Lt; / Style & gt;  

Add this style

  & lt; Style name = "AppTheme.Toolbar" & gt; & Lt; Item name = "color control highlight" & gt; @ Color / ColorTrontLightlight & lt; / Item & gt; & Lt; / Style & gt;  

On your Toolbar

  & lt; Android.support.v7.widget.Toolbar Android: id = "@ + id / toolbar" Android: layout_width = "Match_parent" android: layout_height = "? Attr / actionBarSize" Android: background = "? Entry / color premium" app: Theme = "@Style / Aaptim. Tools" App: PopupTheme = "@Style / AAptim.Popup Overlay" />  

Basic Answer:


No comments:

Post a Comment