Closed MohammadRezaei92 closed 7 years ago
For StickyHeadersLayoutManager to work, your recyclerview needs to have constant height, or match_parent
or have a height of 0 and a layout_weight of some non-zero value. StickyHeadersLayoutManager expects to scroll, and if you use wrap_content
, you will by definition not get scrolling behavior.
If you want sectioning layout but want wrap_content
behavior, you can use SectioningAdapter
, but use a vanilla LinearLayoutManager
.
my xml layout is: `<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" android:fillViewport="true" tools:showIn="@layout/fragment_product_details">
</android.support.v4.widget.NestedScrollView>`
when i run the app recyclerView push top layers up outside the screen. How fix it?