Change Custom Actionbar Title
I'm using a custom layout to center the title of the actiobar. ActionBar actionBar = getActionBar(); actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); actionBar.s
Solution 1:
Modify the setActionbarTitle() as below
private void setActiobarTitle(String title)
{
View v = getActionbar().getCustomView();
TextView titleTxtView = (TextView) v.findViewById(R.id.actionbarTitle);
titleTxtView.setText(title);
}
Post a Comment for "Change Custom Actionbar Title"