Skip to content

Commit f0aef9f

Browse files
committed
fix(ui): 修复下载页面进度条布局约束问题
- 移除 progress 组件的 layout_centerInParent 属性 - 更新 progress 组件的约束条件为相对于父容器底部和右侧对齐 - 修改 progress 组件顶部约束从 list 的顶部改为 list_layout 的底部 - 移除 retry 按钮的 layout_centerInParent 属性以保持布局一致性
1 parent f7f52f9 commit f0aef9f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

FCL/src/main/res/layout/page_download.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,15 @@
243243
android:id="@+id/progress"
244244
android:layout_width="wrap_content"
245245
android:layout_height="wrap_content"
246-
android:layout_centerInParent="true"
247-
app:layout_constraintBottom_toBottomOf="@id/list"
248-
app:layout_constraintEnd_toEndOf="@id/list"
246+
app:layout_constraintBottom_toBottomOf="parent"
247+
app:layout_constraintEnd_toEndOf="parent"
249248
app:layout_constraintStart_toStartOf="@id/list"
250-
app:layout_constraintTop_toTopOf="@id/list" />
249+
app:layout_constraintTop_toBottomOf="@id/list_layout" />
251250

252251
<com.tungsten.fcllibrary.component.view.FCLImageButton
253252
android:id="@+id/retry"
254253
android:layout_width="wrap_content"
255254
android:layout_height="wrap_content"
256-
android:layout_centerInParent="true"
257255
android:src="@drawable/ic_baseline_refresh_24"
258256
app:layout_constraintBottom_toBottomOf="@id/list"
259257
app:layout_constraintEnd_toEndOf="@id/list"

0 commit comments

Comments
 (0)