Toolbar with tab at the bottom

3

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?

    
asked by anonymous 11.05.2015 / 22:57

1 answer

2

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>
    
11.05.2015 / 23:12