Android SmartRefreshLayout 使用自定义刷新的布局

引用的 SmartRefreshLayout 库及版本为:

versions.refresh = "2.0.1"
deps.refresh = "com.scwang.smart:refresh-layout-kernel:$versions.refresh"

在AndroidMainfest.xml文件中,使用自己定义的Application类

在定义的Application类内,使用自己自定义的布局

这里的MyClassicsHeader类最后继承最后继承LinearLayout,需要引用

SmartRefreshLayout 的RefreshHeader接口

下面是实现后的效果

 


版权声明:本文为weixin_40008286原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。