-2

I want to create toolbar in my app, and I am wondering what is the standard height for toolbar in android?

I want it to be big enough for all devices, but not huge. Is there any by default size of tool bar?

2

1 Answer 1

1

Here is the code which uses standard height of toolbar and standard text appearence of the toolbar title.

<android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:background="@color/yellow"
    android:title="@string/title"
    android:titleTextAppearance="@style/TextAppearance.AppCompat.Title"
    >

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.