I want to create a layout with: toolbar on top tablayout with 3 tabs two of the tabs show a list one of the tab shows a grid
On scrolling the list/grid the toolbar should collapse and the tablayout should go on top. I have this worked out but I am working with a dummy list of the type:
<android.support.v4.widget.NestedScrollView
 app:layout_behavior="@string/appbar_scrolling_view_behavior"
....>
    <LinearLayout
    ...
    />
    ...
    .... copied 10 times
</NestedScrollView>
I now want to use a real list, like a listview and a gridview. What do I use? Is it okay to use a listview inside a NestedScrollView?
 
     
     
    