How to set Android toolbar height?
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbarTitle"
android:orientation="vertical"
android:background="@color/black"
android:layout_width="match_parent"
android:fitsSystemWindows="true"
android:minHeight="?attr/actionBarSize" //pay attention here
android:theme="@style/AppTheme"
android:layout_height="wrap_content"> //pay attention here
your ToolBar
which is a ViewGroup
is wraping its height around its children meaning it will get a fixed size only if the children are measured. your minimum height is around 50
to 60
dip
, that is how low your ToolBar
will be.
so if your children height do not add up to a reasonable big number it will still be <= 50
give it a prefered height android:layout_height="200dp"