Change Actionbar Toolbar text color in android

You can change toolbar or action bar text color of your android app with this code. tested on actionbar that is created with Appcompat No Actionbar theme.

Java code example. tested on android lollipop

You can type blue,white or any other color of your choice in the (Color.BLACK) line

Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar1);
       setSupportActionBar(toolbar);
       toolbar.setTitleTextColor(Color.BLACK);

, ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *