How to change color of Toolbar back button in Android?

后端 未结 17 1164
不知归路
不知归路 2020-12-04 06:51

I could not change the color of back button. I am using toolbar material design. In my app I am applying black background of tool bar but the back design is being black by d

17条回答
  •  天涯浪人
    2020-12-04 07:25

    Just use the MaterialToolbar and override the default colors:

        
    

    with:

      
    

    If you are using the androidx.appcompat.widget.Toolbar or the MaterialToolbar with the default style (Widget.MaterialComponents.Toolbar) you can use:

    with:

      
    

提交回复
热议问题