DylanCaiCoding / LoadingStateView

Decoupling the code of toolbar or loading status view. (深度解耦标题栏,解耦加载中、加载失败、无数据等缺省页,支持两行代码集成到基类)
Apache License 2.0
676 stars 53 forks source link

demo运行报错 #21

Closed shenbh closed 2 years ago

shenbh commented 2 years ago

LoadingHelper-master\app\src\main\java\com\dylanc\loadinghelper\sample\base\BaseActivity.java:52: 错误: LoadingHelper.ContentAdapter 在 LoadingHelper 中是 private 访问控制 public void setContentView(int layoutResID, @IdRes int contentViewId, LoadingHelper.ContentAdapter<?> contentAdapter) {

DylanCaiCoding commented 2 years ago

不好意思才看到,在 2.3.0 版本把 ContentAdapter 移除了,感觉用处不大,而且 Kotlin 委托能更好的胜任。改了工具类忘记改示例代码。你再拉一下最新的代码应该能正常跑起来了。