LoadingStateView
LoadingStateView copied to clipboard
Decoupling the code of toolbar or loading status view. (深度解耦标题栏,解耦加载中、加载失败、无数据等缺省页,支持两行代码集成到基类)
旧项目依赖3.0.1版本,升级5.0.0需要改大量代码,改动很大,暂时不升级 > Could not find com.github.DylanCaiCoding:LoadingStateView:3.0.1. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://jcenter.bintray.com/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://repo.maven.apache.org/maven2/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://jitpack.io/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://maven.aliyun.com/repository/public/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://mvn.getui.com/nexus/content/repositories/releases/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://developer.huawei.com/repo/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://maven.columbus.heytapmobi.com/repository/releases/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom - https://nexus.ci.brainco.cn/repository/maven-public/com/github/DylanCaiCoding/LoadingStateView/3.0.1/LoadingStateView-3.0.1.pom
当我在 Activity 中使用 Android 35 版本的 `enableEdgeToEdge()` 方法实现沉浸式的时候,如果同时使用本库设置标题栏,则标题栏会和手机状态栏重叠。代码形如下: ``` override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) enableEdgeToEdge() setContentView(R.layout.activity_post) ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets -> val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)...