I use Toolbar from Material Design. Changed the background of the toolbar, the color of the label, but I can not change the color of the "Back" icon on the toolbar.

How to do it?

The inscription changed with:

toolbar.setTitleTextColor(android.graphics.Color.WHITE); 

But what about the "Back" icon?

    2 answers 2

    In the styles for this moment (and many others, so be careful) the colorControlNormal attribute colorControlNormal . To make the icon white, add this to the styles:

     <item name="colorControlNormal">#FFFFFF</item> 
    • I changed the styles on the main window, but in the other activations the color remained black why ?? - elik
    • @elik, there either activations other themes have or you have InstrantRun turned InstrantRun in the studio settings and you haven’t actually updated the app on the device. - Yuriy SPb
    • YES Tulbar is inserted into each Activi and in their hml, because without it, the bar did not read ... how can I change it through the java? - elik
    • Sori Sori dey not updated)))))))))))))) - elik
    • one
      shorter than sosya)))))))))))) thanks)))))) + 1k in your karma) in heaven dash my name is a ticket to heaven from me) don’t rush there) - elik
     final Drawable upArrow = getResources().getDrawable(R.drawable.abc_ic_ab_back_mtrl_am_alpha); upArrow.setColorFilter(getResources().getColor(R.color.grey), PorterDuff.Mode.SRC_ATOP); getSupportActionBar().setHomeAsUpIndicator(upArrow); 

    A source

    • there is no shorter way ??