I built my toolbar, like most with minHeight , set to actionBarSize :
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="@color/colorPrimary" android:minHeight="?actionBarSize" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> </android.support.v7.widget.Toolbar>
However, if I remove this attribute, there is no difference. The toolbar retains its actionBarSize even if I delete the menu and set the application name to an empty String , so nothing is displayed on the toolbar.
Is there anything that I am missing here?
source share