I have used the coordinator layout to acheive the bar collapsing the action bar.
Now my problem is that I scroll just small enough to hide action bar partially the below stays there.
What I want is that even if I leave it hidden partially; it (the bar below with few button) should merge with action bar.(Similar to Whatsapp)
My code is:
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/app_bar_layout"
layout="@layout/pmp_toolbar_2" />
<android.support.v7.widget.RecyclerView
android:id="@+id/pmp_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
The action bar when scrolled a bit looks like:
And my build.gradle file is
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
UPDATE: See abhishek's comment; this issue is resolved in library update