From 16554805ad5fe7813cc5b3be59d008f76e81924b Mon Sep 17 00:00:00 2001 From: zxj <275873859@qq.com> Date: Fri, 1 Aug 2025 16:49:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=90=A5=E5=85=BB=E4=BF=A1=E6=81=AF=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/res/layout/item_user_nutrition.xml | 264 ++++++++++++------ app/src/main/res/values/dimens.xml | 8 + app/src/main/res/values/themes.xml | 49 ++++ 3 files changed, 231 insertions(+), 90 deletions(-) diff --git a/app/src/main/res/layout/item_user_nutrition.xml b/app/src/main/res/layout/item_user_nutrition.xml index de095dc..aef8a81 100644 --- a/app/src/main/res/layout/item_user_nutrition.xml +++ b/app/src/main/res/layout/item_user_nutrition.xml @@ -5,28 +5,28 @@ android:id="@+id/cl_nutritionData" android:layout_width="540dp" android:layout_height="487dp" - android:visibility="visible" - android:padding="28dp"> + android:padding="28dp" + android:visibility="visible"> + app:layout_constraintTop_toTopOf="parent" + tools:text="夏*秋" /> + app:layout_constraintTop_toTopOf="@id/tv_user_name" + tools:text="推荐热量:680kcal" /> - + android:layout_height="match_parent" + android:layout_marginTop="20dp" + android:orientation="horizontal"> - + - + - + - + + - - + - + - + - - + - + - + - - + - + - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index e12b4e9..bc7e941 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -1,4 +1,12 @@ 1000dp + 16sp + 30sp + 28dp + 120dp + 130dp + 160dp + 66dp + 80dp \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index a976193..fde0916 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -66,4 +66,53 @@ @color/white 1dp + + + + + + + + + + + + \ No newline at end of file