actionbar content color in android

To change the action bar content color in Android, you can use the setTitleTextColor() method of the ActionBar class. Here is an example:

ActionBar actionBar = getSupportActionBar();
actionBar.setTitleTextColor(getResources().getColor(R.color.your_color));

Replace your_color with the color resource you want to use. This will change the color of the title text in the action bar.

If you want to change the color of the action bar background, you can use the setBackgroundDrawable() method. Here is an example:

ActionBar actionBar = getSupportActionBar();
actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.your_color)));

Again, replace your_color with the color resource you want to use. This will change the background color of the action bar.

Remember to import the necessary classes and resources in your Android activity or fragment.