Objects.requireNonNull(getSupportActionBar()).setDisplayHomeAsUpEnabled(true);
setTitle(Html.fromHtml("<font color=\"white\">" + "Settings" + "</font>"));
This is how the action bar looks like now
I'm using these two lines on onCreate method to change action bar title and color but it's aligned to the left, is there a way to center it?
Instead of using
setTitleuse a custom toolbar