Giter Club home page Giter Club logo

Comments (7)

13120241790 avatar 13120241790 commented on June 3, 2024

大佬您好 ,还发现一个问题 mRefreshLayout.setEnableAutoLoadMore(false); 如果开启了禁用,手动自己去拉 onLoadingMore 也不会回调了。有机会能和您通过其他方式进行交流请教吗(QQ/WX/钉钉/飞书等 )? GitHub 还经常不能开打,感谢大佬

from smoothrefreshlayout.

dkzwm avatar dkzwm commented on June 3, 2024

我这边没有复现你的问题,理论上使用如下配置

refreshLayout.setDisableRefresh(true);
refreshLayout.setDisableLoadMore(false);

即可,不需要额外调用setEnableAutoLoadMore,因为默认没有开启自动加载更多。

from smoothrefreshlayout.

13120241790 avatar 13120241790 commented on June 3, 2024

你好,大佬请教一下,我看您是用的 NestedScrollingChild3,NestedScrollingParent3 。如果我不需要考虑嵌套问题的话 在 RecyclerView.OnScrollListener 的 SCROLL_STATE_IDLE 时候去判断
findLastVisibleItemPosition() == layoutManager.getItemCount() - 1 触底了然后去触加载更多这种实现方式有什么风险和坑吗?

from smoothrefreshlayout.

dkzwm avatar dkzwm commented on June 3, 2024

本库的嵌套RecyclerView自动加载更多就是类似的实现。你自己实现或者使用本库的实现都是可以的。

from smoothrefreshlayout.

13120241790 avatar 13120241790 commented on June 3, 2024

好的谢谢大佬,如果不能手动去滑动触底,通过代码去操作 smoothScrollToPosition 去滑动到最后一个能触发触底吗?感谢大佬指导!

from smoothrefreshlayout.

13120241790 avatar 13120241790 commented on June 3, 2024

我试了可以 感谢指导

from smoothrefreshlayout.

dkzwm avatar dkzwm commented on June 3, 2024

本库有相关实现,你直接使用本库提供的也可以的。DEMO中的测试触发滚动到边缘并自动刷新界面就是类似实现

from smoothrefreshlayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.