From 590c1cff46b105d774271f950caa9f65523f05c1 Mon Sep 17 00:00:00 2001 From: Linjiajia <319408893@qq.com> Date: 星期五, 29 十二月 2023 20:20:40 +0800 Subject: [PATCH] 1、增加护眼模式主题\n2、修复显示问题 --- app/src/main/res/layout/item_electronic_file_add.xml | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/item_electronic_file_add.xml b/app/src/main/res/layout/item_electronic_file_add.xml index 722063c..c1964ad 100644 --- a/app/src/main/res/layout/item_electronic_file_add.xml +++ b/app/src/main/res/layout/item_electronic_file_add.xml @@ -28,7 +28,7 @@ <androidx.constraintlayout.utils.widget.ImageFilterView android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#73fab4cd" + android:background="?attr/electronicFileAddBackgroundColor" app:round="10dp" /> <androidx.constraintlayout.utils.widget.ImageFilterView @@ -76,16 +76,17 @@ android:layout_gravity="top|start" /> </FrameLayout> - <FrameLayout + <androidx.cardview.widget.CardView android:id="@+id/fl_add" android:layout_width="match_parent" android:layout_height="0dp" - app:layout_constraintDimensionRatio="1:1" android:layout_margin="7dp" + app:layout_constraintDimensionRatio="1:1" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" - android:background="@drawable/shape_73fab4cd_solid" - + app:cardCornerRadius="10dp" + app:cardElevation="0dp" + app:cardBackgroundColor="?attr/electronicFileAddBackgroundColor" > <ImageView android:layout_width="wrap_content" @@ -93,7 +94,7 @@ android:background="@drawable/ic_import_add" android:layout_gravity="center" /> - </FrameLayout> + </androidx.cardview.widget.CardView> </androidx.constraintlayout.widget.ConstraintLayout> </layout> \ No newline at end of file -- Gitblit v1.9.1