android - How to change back button in material design? -
We use this feature in the styles by a new one to replace the back icon in the action bar :
& lt; Item name = "android: homeAsUpIndicator" & gt; @drawable / up_indicator & lt; / Item & gt;
But the same approach does not work with the toolbar:
& style; Name = "toolbar" Parent = "@ style / widget.AppCompat.Toolbar" & gt; & Lt; Item name = "android: windowNoTitle" & gt; True & lt; / Item & gt; & Lt; Item name = "title" & gt; @ Null & lt; / Item & gt; & Lt; Item Name = "HomeAspect Indicator" & gt; @ Null & lt; / Item & gt; & Lt; / Style & gt;
Do you have a solution for this or can you share a link to the source code with these styles? To change the icon in the toolbar I used to do it as an actionbase I did not find by Mesele, you can use something like this
Comments
Post a Comment