Malinskiy / SuperRecyclerView

Pumped up RecyclerView
2.63k stars 469 forks source link

Using inside NestedScrollView #115

Open NtcWai opened 7 years ago

NtcWai commented 7 years ago

My layout like that:

<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">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <android.support.v7.widget.RecyclerView
            android:id="@+id/banner_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:nestedScrollingEnabled="false"
            />

        <View
            android:id="@+id/divider"
            android:layout_width="match_parent"
            android:layout_height="@dimen/divider_height"
            android:layout_below="@id/banner_list"
            android:background="@color/divider"/>

        <com.malinskiy.superrecyclerview.SuperRecyclerView
            android:id="@+id/latest_post_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/divider"
            app:layout_empty="@layout/view_empty_home_tab"
            app:layout_moreProgress="@layout/view_loading_more"
            app:layout_progress="@layout/view_loading_first"
            />
    </RelativeLayout>
</android.support.v4.widget.NestedScrollView>

But the SuperRecyclerView doesn't display content. It's OK when I replace by normal RecyclerView. How to fix it ? Thanks!

diegoRodriguezAguila commented 7 years ago

I have this same issue, currently using support 25.1.0, with regular recyclerview it works, it would be great if we would have any response about this issue

NtcWai commented 7 years ago

I have the same issue, did you find any solution ? thank you

devbrevity commented 6 years ago

any one find solution for this issue?