Skip to content
New issue

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

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

Already on GitHub? # to your account

4.1.4版本-->NestedScrollView中嵌套加载更多,会导致onLoad()一直被执行 #6659

Open
runitwolf-sloop opened this issue Nov 4, 2024 · 0 comments

Comments

@runitwolf-sloop
Copy link

runitwolf-sloop commented Nov 4, 2024

helper = new QuickAdapterHelper.Builder(adapter)
                .setTrailingLoadStateAdapter(new TrailingLoadStateAdapter.OnTrailingListener() {
                    @Override
                    public void onLoad() {
                        request()
                    }

                    @Override
                    public void onFailRetry() {
                        request()
                    }

                    @Override
                    public boolean isAllowLoading() {
                        return !binding.swipeRefreshLayout.isRefreshing();
                    }
                }).build();
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
            android:id="@+id/swipeRefreshLayout"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <androidx.core.widget.NestedScrollView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:fillViewport="true">

                           <androidx.recyclerview.widget.RecyclerView
                                android:id="@+id/recycleview"
                                android:nestedScrollingEnabled="false"
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content" />
            </androidx.core.widget.NestedScrollView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@runitwolf-sloop runitwolf-sloop changed the title NestedScrollView中嵌套加载更多,会导致onLoad()一直被执行 4.1.4版本-->NestedScrollView中嵌套加载更多,会导致onLoad()一直被执行 Nov 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant