So I am setting a custom title bar for all of my activities using the following code in the onCreate.
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(id);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar);
activityTitle = (TextView)findViewById(R.id.titleText);
if (activityTitle != null)
{
activityTitle.setText(title);
}
This sets the custom title bar correctly but I find that on the main launcher activity the name of the app shows in the title bar for a split second then changes to the title I set above. This only happens for the main entry point activity, all other activities show my custom title instantly. Any ideas why this would happen and how to fix?
Thanks