How to change color of Toolbar back button in Android?

后端 未结 17 1127
不知归路
不知归路 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:14

    You can add this code into your java class. But you must create a vector asset before, so you can customize your arrow back.

    actionBar.setHomeAsUpIndicator(R.drawable.ic_arrow_back_black_24dp);
    

提交回复
热议问题