LoadingStateView icon indicating copy to clipboard operation
LoadingStateView copied to clipboard

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

Results 12 LoadingStateView issues
Sort by recently updated
recently updated
newest added

ViewPager2中使用androidx.viewpager2.adapter.FragmentStateAdapter加载Fragment,标题栏加载不出来,断点是因为bind.root.parent为空,有没有好的解决方法

![image](https://user-images.githubusercontent.com/39075239/87501566-f6b78000-c691-11ea-9ee7-541e72de4502.png)

如题,是否可以增加获取当前显示状态的方法,我本来想通过LoadingStateDelegate扩展方法进行获取,但是发现loadingStateView是私有变量

class LoadingViewDelegate:LoadingStateView.ViewDelegate(ViewType.LOADING) { override fun onCreateView(inflater: LayoutInflater, parent: ViewGroup): View = inflater.inflate(R.layout.common_loading_view, parent, false).also { val ivLoading: ImageView = it.findViewById(R.id.loading_iv) (ivLoading.drawable as AnimationDrawable).start() } } 这样加载loadingView 后 切换到contentView 那么loadingView的动画怎么停止

布局文件 ` ` activty里面设置: ` override val contentView: View? get() = binding.container` showContent的时候界面会多一个margin

因为网络请求速度太快的情况下showLoadingView只会闪一下马上变成showContentView,这样看起来很奇怪

![Image](https://github.com/user-attachments/assets/f81e4ef9-d078-4496-9ddc-fb99237790e8) ![Image](https://github.com/user-attachments/assets/f90d7469-59d6-43c4-9fd7-82528c41ac83) ![Image](https://github.com/user-attachments/assets/e659c018-e73c-4352-bb3e-de56c5436b97) ![Image](https://github.com/user-attachments/assets/a9c2bb85-fb81-4da9-a535-f7d61a0d8e9d)加上一层就有效果 不加显示空白界面 加上就会正常显示加载动画到销毁 ![Image](https://github.com/user-attachments/assets/8d481ce8-2059-4558-afa0-9a1b6b03331b)

![Image](https://github.com/user-attachments/assets/ac8a5090-84e8-46a3-bdd4-99a18ae8eadd) ![Image](https://github.com/user-attachments/assets/c1656350-b039-4430-8f3d-72f63e7f45bc)可以适配一下Android15吗