由于PullToRefresh暂不支持RecyclerView,我放弃了,选择了SwipeToLoadLayout来代替。但是使用的过程中遇到一些问题,记录下来方便以后自查。
- SwipeToLoadLayout的子view最多不能大于3个。
- swipe_refresh_header、swipe_target、swipe_load_more_footer,必须是这样子命名。否则没法正常使用,原因看源码截图:

由于PullToRefresh暂不支持RecyclerView,我放弃了,选择了SwipeToLoadLayout来代替。但是使用的过程中遇到一些问题,记录下来方便以后自查。
本文标题:使用SwipeToLoadLayout框架注意问题
本文链接:https://www.haomeiwen.com/subject/qzylzttx.html
网友评论