最新的SwipeRefreshLayout在Androidx包下,但是在使用的时候,会找不到这个控件,
方法是直接导入下方的这个库
implementation 'com.baoyz.pullrefreshlayout:library:1.2.0'
然后这个时候只要在AS里双击SHIFT,然后搜索SwipeRefreshLayout
就可以使用了
最新的SwipeRefreshLayout在Androidx包下,但是在使用的时候,会找不到这个控件,
方法是直接导入下方的这个库
implementation 'com.baoyz.pullrefreshlayout:library:1.2.0'
然后这个时候只要在AS里双击SHIFT,然后搜索SwipeRefreshLayout
就可以使用了