feat(ui): 更新复合叠层结果界面的加载状态显示
- 在加载状态下隐藏图标、标题和副标题视图 - 在加载状态下隐藏基础RecyclerView组件 - 在成功状态恢复显示标题和副标题视图 - 优化界面元素的可见性控制逻辑
这个提交包含在:
父节点
f33b64f991
当前提交
68b653755b
@ -127,6 +127,11 @@ class CompositeLayupResultActivity : BaseActivity<ActivityCompositeLayupResultBi
|
|||||||
when (state) {
|
when (state) {
|
||||||
CompositeLayupResultState.LOADING -> {
|
CompositeLayupResultState.LOADING -> {
|
||||||
binding.hint.text = "OCR识别中,请稍后..."
|
binding.hint.text = "OCR识别中,请稍后..."
|
||||||
|
binding.icon.visibility = android.view.View.GONE
|
||||||
|
binding.title.visibility = android.view.View.GONE
|
||||||
|
binding.subtitle1.visibility = android.view.View.GONE
|
||||||
|
binding.subtitle2.visibility = android.view.View.GONE
|
||||||
|
binding.baseRecyclerView.visibility = android.view.View.GONE
|
||||||
renderActions(emptyList())
|
renderActions(emptyList())
|
||||||
}
|
}
|
||||||
CompositeLayupResultState.SUCCESS -> {
|
CompositeLayupResultState.SUCCESS -> {
|
||||||
@ -205,6 +210,9 @@ class CompositeLayupResultActivity : BaseActivity<ActivityCompositeLayupResultBi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
binding.icon.visibility = android.view.View.VISIBLE
|
binding.icon.visibility = android.view.View.VISIBLE
|
||||||
|
binding.title.visibility = android.view.View.VISIBLE
|
||||||
|
binding.subtitle1.visibility = android.view.View.VISIBLE
|
||||||
|
binding.subtitle2.visibility = android.view.View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun buildInstruction(): String {
|
private fun buildInstruction(): String {
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户