From 1df231fd6aafa221aef3532d069c7e27d4331be7 Mon Sep 17 00:00:00 2001
From: Linjiajia <319408893@qq.com>
Date: 星期日, 27 八月 2023 19:21:01 +0800
Subject: [PATCH] 功能全部完成

---
 app/src/main/res/layout/activity_health_care.xml |   92 ++++++++++++++++++++++++++++++---------------
 1 files changed, 61 insertions(+), 31 deletions(-)

diff --git a/app/src/main/res/layout/activity_health_care.xml b/app/src/main/res/layout/activity_health_care.xml
index 6346ca2..379a19d 100644
--- a/app/src/main/res/layout/activity_health_care.xml
+++ b/app/src/main/res/layout/activity_health_care.xml
@@ -65,7 +65,7 @@
                     <TextView
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
-                        android:text="@{viewModel.healthCareBaseInfoBeanLiveData.name +`鐜扮姸鍋ュ悍鎯呭喌淇℃伅`}"
+                        android:text="@{viewModel.healthCareBaseInfoBeanLiveData.name!=null?viewModel.healthCareBaseInfoBeanLiveData.name+`鐜扮姸鍋ュ悍鎯呭喌淇℃伅`:`鐜扮姸鍋ュ悍鎯呭喌淇℃伅`}"
                         android:textColor="@color/black"
                         android:textSize="20sp"
                         tools:text="xxx鐜扮姸鍋ュ悍鎯呭喌淇℃伅"
@@ -98,13 +98,14 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.name}"
                                 android:background="@null"
                                 android:enabled="@{viewModel.typeLiveData}"
-                                android:textColor="#DE000000"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュ鍚峘:``}"
                                 android:textSize="14sp"
+                                android:textColor="#DE000000"
                                 android:layout_marginTop="5dp"
                                 android:inputType="textMultiLine"
                                 />
@@ -132,11 +133,12 @@
                                 />
                             <TextView
                                 android:id="@+id/tv_sex"
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.sexStr}"
                                 android:background="@null"
                                 android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ユ�у埆`:``}"
                                 android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
@@ -169,11 +171,13 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.educationLevel}"
                                 android:background="@null"
-                                android:enabled="@{viewModel.typeLiveData}"                                android:textColor="#DE000000"
+                                android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ユ枃鍖栫▼搴:``}"
+                                android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
                                 android:inputType="textMultiLine"
@@ -201,11 +205,13 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.work}"
                                 android:background="@null"
-                                android:enabled="@{viewModel.typeLiveData}"                                android:textColor="#DE000000"
+                                android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヨ亴涓歚:``}"
+                                android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
                                 android:inputType="textMultiLine"
@@ -238,11 +244,13 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.phone}"
                                 android:background="@null"
-                                android:enabled="@{viewModel.typeLiveData}"                                android:textColor="#DE000000"
+                                android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ョ數璇漙:``}"
+                                android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
                                 android:inputType="phone"
@@ -270,11 +278,13 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.email}"
                                 android:background="@null"
-                                android:enabled="@{viewModel.typeLiveData}"                                android:textColor="#DE000000"
+                                android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ョ數瀛愰偖浠禶:``}"
+                                android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
                                 android:inputType="textMultiLine"
@@ -307,11 +317,13 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.address}"
                                 android:background="@null"
-                                android:enabled="@{viewModel.typeLiveData}"                                android:textColor="#DE000000"
+                                android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヤ綇鍧�`:``}"
+                                android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
                                 android:inputType="textMultiLine"
@@ -712,11 +724,13 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.medicine}"
                                 android:background="@null"
-                                android:enabled="@{viewModel.typeLiveData}"                                  android:textColor="#DE000000"
+                                android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュ父鐢ㄨ嵂鐗ー:``}"
+                                android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
                                 android:inputType="textMultiLine"
@@ -744,11 +758,13 @@
                                 android:alpha="0.54"
                                 />
                             <EditText
-                                android:layout_width="wrap_content"
+                                android:layout_width="match_parent"
                                 android:layout_height="wrap_content"
                                 android:text="@={viewModel.healthCareBaseInfoBeanLiveData.baseDisease}"
                                 android:background="@null"
-                                android:enabled="@{viewModel.typeLiveData}"                                  android:textColor="#DE000000"
+                                android:enabled="@{viewModel.typeLiveData}"
+                                android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ョ洰鍓嶅熀纭�鐥卄:``}"
+                                android:textColor="#DE000000"
                                 android:textSize="14sp"
                                 android:layout_marginTop="5dp"
                                 android:inputType="textMultiLine"
@@ -825,11 +841,13 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.eatGood}"
                                         android:background="@null"
-                                        android:enabled="@{viewModel.typeLiveData}"                                           android:textColor="#DE000000"
+                                        android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ラギ椋燂紙鍠滐級`:``}"
+                                        android:textColor="#DE000000"
                                         android:textSize="14sp"
                                         android:layout_marginTop="5dp"
                                         android:inputType="textMultiLine"
@@ -858,11 +876,13 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.eatBad}"
                                         android:background="@null"
-                                        android:enabled="@{viewModel.typeLiveData}"                                         android:textColor="#DE000000"
+                                        android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ラギ椋燂紙蹇岋級`:``}"
+                                        android:textColor="#DE000000"
                                         android:textSize="14sp"
                                         android:layout_marginTop="5dp"
                                         android:inputType="textMultiLine"
@@ -896,11 +916,12 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.hobby}"
                                         android:background="@null"
                                         android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ョ埍濂絗:``}"
                                         android:textColor="#DE000000"
                                         android:textSize="14sp"
                                         android:layout_marginTop="5dp"
@@ -930,11 +951,13 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.addition}"
                                         android:background="@null"
-                                        android:enabled="@{viewModel.typeLiveData}"                                         android:textColor="#DE000000"
+                                        android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュ棞濂絗:``}"
+                                        android:textColor="#DE000000"
                                         android:textSize="14sp"
                                         android:layout_marginTop="5dp"
                                         android:inputType="textMultiLine"
@@ -1148,11 +1171,12 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.eatGood}"
                                         android:background="@null"
                                         android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュぇ渚块鐜嘸:``}"
                                         android:textColor="#DE000000"
                                         android:textSize="14sp"
                                         android:layout_marginTop="5dp"
@@ -1182,11 +1206,13 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.eatGood}"
                                         android:background="@null"
-                                        android:enabled="@{viewModel.typeLiveData}"                                          android:textColor="#DE000000"
+                                        android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュ皬渚块鐜嘸:``}"
+                                        android:textColor="#DE000000"
                                         android:textSize="14sp"
                                         android:layout_marginTop="5dp"
                                         android:inputType="textMultiLine"
@@ -1800,6 +1826,7 @@
                                         android:text="@={viewModel.healthCareNursingExaminationBeanLiveData.temperature}"
                                         android:background="@null"
                                         android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヤ綋娓╁害鏁癭:``}"
                                         android:textColor="#B3000000"
                                         android:textSize="16sp"
                                         android:layout_marginTop="5dp"
@@ -1829,11 +1856,12 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareNursingExaminationBeanLiveData.pulse}"
                                         android:background="@null"
                                         android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヨ剦鎼忛鐜嘸:``}"
                                         android:textColor="#B3000000"
                                         android:textSize="16sp"
                                         android:layout_marginTop="5dp"
@@ -1868,11 +1896,12 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareNursingExaminationBeanLiveData.bloodPressure}"
                                         android:background="@null"
                                         android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヨ鍘媊:``}"
                                         android:textColor="#B3000000"
                                         android:textSize="16sp"
                                         android:layout_marginTop="5dp"
@@ -1902,11 +1931,12 @@
                                         android:alpha="0.54"
                                         />
                                     <EditText
-                                        android:layout_width="wrap_content"
+                                        android:layout_width="match_parent"
                                         android:layout_height="wrap_content"
                                         android:text="@={viewModel.healthCareNursingExaminationBeanLiveData.weight}"
                                         android:background="@null"
                                         android:enabled="@{viewModel.typeLiveData}"
+                                        android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヤ綋閲峘:``}"
                                         android:textColor="#B3000000"
                                         android:textSize="16sp"
                                         android:layout_marginTop="5dp"

--
Gitblit v1.9.1