Change toolbar back arrow color

前端 未结 3 742
独厮守ぢ
独厮守ぢ 2021-01-05 09:19

Hi. In the picture above you can see a back arrow and a (part of) title. I changed the title color using the attached .xml code. But I want to color the back arrow

3条回答
  •  长发绾君心
    2021-01-05 09:59

    For me I'm using my own drawable back arraw.

    first add this to your toolbar

      
    
    

    as you can see

    app:navigationIcon="@drawable/ic_back"
    

    is the key to change the arraw as you want, and here is how it looks like

    
    
    

    it is a vector

提交回复
热议问题