DylanCaiCoding / LoadingStateView

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

大佬,我要是只想使用 LoadingView,不用标题栏方法,怎么能让LoadingView 不遮挡标题栏呢,LoadingView可以用marginTop来控制不遮挡标题栏吗 #5

Closed wang2793312458 closed 4 years ago

wang2793312458 commented 4 years ago

loadingHelper = new LoadingHelper(this); loadingHelper.setOnReloadListener(this::onReload);

wang2793312458 commented 4 years ago

我的项目里面 标题栏各种花哨不同,都写adapter的话 工程量太大

DylanCaiCoding commented 4 years ago

loadingHelper = new LoadingHelper(this); loadingHelper.setOnReloadListener(this::onReload);

创建 LoadingHelper 对象可以传 View 的,对 View 进行 loading,建议先用 new LoadingHelper(findViewById(R.id.content_parent)) 来创建。新的项目再用适配器解耦封装。

wang2793312458 commented 4 years ago

谢谢了,我试试