mobile menu
Site icon
ZIDSWORLD

The Tech Galaxy

Live support

Change Actionbar Toolbar text color in android

Sunday, November 19, 2023, 4 AM

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

Example of changing toolbar text color in android Java

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);

Comments

No comments found.