Closed wang2793312458 closed 4 years ago
我的项目里面 标题栏各种花哨不同,都写adapter的话 工程量太大
loadingHelper = new LoadingHelper(this); loadingHelper.setOnReloadListener(this::onReload);
创建 LoadingHelper 对象可以传 View 的,对 View 进行 loading,建议先用 new LoadingHelper(findViewById(R.id.content_parent)) 来创建。新的项目再用适配器解耦封装。
谢谢了,我试试
loadingHelper = new LoadingHelper(this); loadingHelper.setOnReloadListener(this::onReload);