I'm using Toolbar
, but I wanted the bottom of it to have a line of another color that delimited it, as the image shows,
To achieve this effect the only thing I remember is to use a ImageView
. Is there any better way to do this?
I'm using Toolbar
, but I wanted the bottom of it to have a line of another color that delimited it, as the image shows,
To achieve this effect the only thing I remember is to use a ImageView
. Is there any better way to do this?
Instead of an ImageView use a View with the background of the color you want and set height to android:layout_height
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
........
........
........>
<View
android:id="@+id/LinhaHorizontal"
android:layout_width="match_parent"
android:layout_height= "2dp"
android:background="@color/gray"
android:layout_gravity="bottom"/>
</android.support.v7.widget.Toolbar>