Dev.7arooney Dev.7arooney - 9 months ago 39
Android Question

How to create a Tool Bar inside ListActivity

I have been creating a list view activity as I want to add a toolbar in this list activity, I already Created a toolbar but it shows back of a list view like this, I want this toolbar above the listView

enter image description here

I don't how to solve this case please if there's any one could solve this I would have a pleasure
this is my XML file







Answer Source

Add the following line to your ListView (to tell it to layout below the Toolbar)

android:layout_below="@id/viewab_title"