Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NestedScrollView+嵌套+RecyclerView问题 #3859

Open
gaohequan opened this issue Apr 15, 2024 · 0 comments
Open

NestedScrollView+嵌套+RecyclerView问题 #3859

gaohequan opened this issue Apr 15, 2024 · 0 comments

Comments

@gaohequan
Copy link

Describe the bug
使用的是4.1.4开源库和github中demo。
当NestedScrollView+嵌套+RecyclerView 会发现helper = QuickAdapterHelper.Builder(mAdapter)
.setTrailingLoadStateAdapter(object : OnTrailingListener {
override fun onLoad() {
request()
}

            override fun onFailRetry() {
                request()
            }

            override fun isAllowLoading(): Boolean {
                return !viewBinding.refreshLayout.isRefreshing
            }
        }).build()
        中 onload会一直加载。

如果使用helper.trailingLoadStateAdapter?.checkDisableLoadMoreIfNotFullPage();方法 ,则无法自动加载。
重现不中 只需要 把demo中的 activity_load_more.xml布局改成
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg"
android:orientation="vertical">

    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/rv_list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:nestedScrollingEnabled="false"/>
    </androidx.core.widget.NestedScrollView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant