I'm using a custom Toolbar widget in my app, I found that the label attribute in Manifest file doesn't work. Any suggestion except using "setTitle()" method in Activity/Fragment? Thank you.
<activity
android:name=".CartActivity"
android:label="@string/cart_activity_label"
android:parentActivityName=".CatalogActivity" />
I wish the title can be shown by using attributes in Manifest file.
Ok...I just found out that I forgot to link the View (Toolbar) object to the View id. Follwing is the complete setup for using a Toolbar as a default ActionBar:
private Toolbar toolbar;
toolbar = findViewById(R.id.toolbar); //I missed this
setSupportActionBar(toolbar);
Toolbar title explain: