how to set status bar color according to fragment android code example
Example 1: actionbar content color in android
getActionBar()/* or getSupportActionBar() */.setTitle(Html.fromHtml("<font color=\"red\">" + getString(R.string.app_name) + "</font>"));
Example 2: set title color in support action bar android
ActionBar actionBar = getActionBar();
actionBar.setTitle(Html
.fromHtml("<font color='#ffffff'> Now playing </font>"));