0

I'm trying to create an extended toolbar, something like: enter image description here

My activity xml:

<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
tools:ignore="MergeRootFrame" >

<android.support.v7.widget.Toolbar
    android:id="@+id/my_toolbar"
    android:layout_height="128dp"
    android:layout_width="match_parent"
    android:minHeight="?attr/actionBarSize"
    android:background="?attr/colorPrimary" />

From some reason, the elevation is not at the bottom of the Toolbar: enter image description here

Any idea?

Thanks!

ox_
  • 805
  • 1
  • 7
  • 14

1 Answers1

1

Finally found it - there are two toolbars displayed, the decor one and the one I've added. Changed my theme to inherit from "Theme.AppCompat.Light.NoActionBar" and now only my toolbar is visible.

Thanks anyway!

ox_
  • 805
  • 1
  • 7
  • 14