user3548779 user3548779 - 2 years ago 84
Android Question

Change the text color of the activity title

In Xamarin, how can I change the text colour of the text in the


I have changed the background colour successfully, but not the text colour.

Here is my code:

ColorDrawable colorDrawable = new ColorDrawable(Color.White);
this.TitleColor = Color.Black;

I cannot see a correct method in the
object, and specifying
does not work correctly.

Answer Source

did you try this?

int actionBarTitleId = Resources.getSystem().getIdentifier("action_bar_title", "id", "android");
if (actionBarTitleId > 0) {
    TextView title = (TextView) findViewById(actionBarTitleId);
    if (title != null) {

more info on this Site

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download