Hey guys ,
I have a toolbar and i want to add a border at the bottom for android .
This is my toolbar.axml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_scrollFlags="scroll|enterAlways">
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="@android:color/holo_blue_dark"/>
</android.support.v7.widget.Toolbar>
This however puts the line in the middle of my toolbar .
I checked several solutions and the view should be beneath the <android.support.v7.widget.Toolbar> , but when i place it below - it says the xml cannot contain multiple root elements .
Any idea how to fix it ?
Thanks