From 31b7700b976a46901f67c5d7a00281ca4745fc9f Mon Sep 17 00:00:00 2001 From: Linjiajia <319408893@qq.com> Date: 星期六, 07 十月 2023 21:44:35 +0800 Subject: [PATCH] 调整旅游模块功能 --- app/src/main/res/layout/activity_health_care.xml | 612 ++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 406 insertions(+), 206 deletions(-) diff --git a/app/src/main/res/layout/activity_health_care.xml b/app/src/main/res/layout/activity_health_care.xml index 53bd954..7d5bb4d 100644 --- a/app/src/main/res/layout/activity_health_care.xml +++ b/app/src/main/res/layout/activity_health_care.xml @@ -25,23 +25,24 @@ app:title="鍋ュ悍淇濆仴" app:titleGravity="left" > + <FrameLayout - android:layout_width="24dp" + android:layout_width="19dp" android:layout_height="24dp" - android:layout_marginHorizontal="16dp" android:layout_gravity="center_vertical|end" - > + android:layout_marginHorizontal="16dp"> + <ImageView android:id="@+id/iv_operate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:background="@drawable/ic_operate" - /> + android:background="@{viewModel.typeLiveData?@drawable/ic_operate_finish:@drawable/ic_operate}" /> </FrameLayout> </com.android.app_base.widget.ExtendTitleBar> - <ScrollView + <androidx.core.widget.NestedScrollView + android:id="@+id/nestedScrollView" android:layout_width="match_parent" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" @@ -64,9 +65,10 @@ <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="XXX鐜扮姸鍋ュ悍鎯呭喌淇℃伅" + android:text="@{viewModel.healthCareBaseInfoBeanLiveData.name!=null?viewModel.healthCareBaseInfoBeanLiveData.name+`鐜扮姸鍋ュ悍鎯呭喌淇℃伅`:`鐜扮姸鍋ュ悍鎯呭喌淇℃伅`}" android:textColor="@color/black" android:textSize="20sp" + tools:text="xxx鐜扮姸鍋ュ悍鎯呭喌淇℃伅" /> <TextView android:layout_width="wrap_content" @@ -95,13 +97,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="寮犱笁" - android:textColor="#DE000000" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.name}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュ鍚峘:``}" android:textSize="14sp" + android:textColor="#DE000000" android:layout_marginTop="5dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -126,9 +132,13 @@ android:alpha="0.54" /> <TextView - android:layout_width="wrap_content" + android:id="@+id/tv_sex" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="鐢�" + 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" @@ -160,13 +170,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="鏈" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.educationLevel}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ユ枃鍖栫▼搴:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -190,13 +204,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="缁忕悊" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.work}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヨ亴涓歚:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -225,14 +243,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="17818824255" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.phone}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ョ數璇漙:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" - android:ellipsize="marquee" + android:inputType="phone" /> <View android:layout_width="match_parent" @@ -256,13 +277,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="Zhang@123.com" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.email}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ョ數瀛愰偖浠禶:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -291,13 +316,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="骞夸笢鐪佸箍宸炲競鐣鍖哄皬璋峰洿琛楅亾骞夸笢宸ヤ笟澶у" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.address}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ヤ綇鍧�`:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -335,9 +364,11 @@ app:layout_constraintHorizontal_chainStyle="spread_inside" > <ImageView + android:id="@+id/iv_a" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.bloodClass.a}" + android:clickable="@{viewModel.typeLiveData}" /> <TextView android:layout_width="wrap_content" @@ -363,7 +394,9 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" /> + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.bloodClass.b}" + /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -388,12 +421,14 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" /> + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.bloodClass.o}" + /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" - android:text="C鍨�" + android:text="O鍨�" android:textColor="#DE000000" android:textSize="16sp" android:layout_marginStart="8dp" @@ -412,7 +447,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.bloodClass.rh}" /> <TextView android:layout_width="wrap_content" @@ -437,7 +473,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.bloodClass.other}" /> <TextView android:layout_width="wrap_content" @@ -461,13 +498,14 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.bloodClass.unknown}" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" - android:text="RH闃村瀷" + android:text="涓嶆竻妤�" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginStart="8dp" @@ -499,7 +537,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.allergyClass.medicine}" /> <TextView android:layout_width="wrap_content" @@ -521,7 +560,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.allergyClass.food}" /> <TextView android:layout_width="wrap_content" @@ -543,7 +583,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.allergyClass.other}" /> <TextView android:layout_width="wrap_content" @@ -580,7 +621,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.geneticDiseaseClass.hypertension}" /> <TextView android:layout_width="wrap_content" @@ -602,7 +644,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.geneticDiseaseClass.diabetes}" /> <TextView android:layout_width="wrap_content" @@ -624,7 +667,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.geneticDiseaseClass.tumor}" /> <TextView android:layout_width="wrap_content" @@ -646,7 +690,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareBaseInfoBeanLiveData.geneticDiseaseClass.other}" /> <TextView android:layout_width="wrap_content" @@ -678,14 +723,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="闃垮徃鍖规灄" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.medicine}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュ父鐢ㄨ嵂鐗ー:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" - android:ellipsize="marquee" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -709,13 +757,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="鍐犲績鐥呫�佸摦鍠�" + android:text="@={viewModel.healthCareBaseInfoBeanLiveData.baseDisease}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ョ洰鍓嶅熀纭�鐥卄:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -788,14 +840,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="鐢滃搧銆佺偣蹇�" + 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" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -820,16 +875,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="杈涜荆銆佸喎鍐�" + android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.eatBad}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ラギ椋燂紙蹇岋級`:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" - android:drawableStart="@drawable/ic_radio_button" - android:drawablePadding="8dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -859,14 +915,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="鍠濊尪" + 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" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -891,14 +950,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="鍚哥儫" + android:text="@={viewModel.healthCareLifeHabitsBeanLiveData.addition}" + android:background="@null" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData?`璇疯緭鍏ュ棞濂絗:``}" android:textColor="#DE000000" android:textSize="14sp" android:layout_marginTop="5dp" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -931,7 +993,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.sleepClass.good}" /> <TextView android:layout_width="wrap_content" @@ -953,7 +1016,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.sleepClass.general}" /> <TextView android:layout_width="wrap_content" @@ -975,7 +1039,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.sleepClass.easyWake}" /> <TextView android:layout_width="wrap_content" @@ -997,7 +1062,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.sleepClass.dreaminess}" /> <TextView android:layout_width="wrap_content" @@ -1024,7 +1090,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.sleepClass.sleepless}" /> <TextView android:layout_width="wrap_content" @@ -1046,7 +1113,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.sleepClass.snore}" /> <TextView android:layout_width="wrap_content" @@ -1068,7 +1136,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.sleepClass.wakefulness}" /> <TextView android:layout_width="wrap_content" @@ -1101,14 +1170,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="1娆�/d" + 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" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -1133,14 +1205,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="6娆�/d" + 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" + android:inputType="textMultiLine" /> <View android:layout_width="match_parent" @@ -1172,7 +1247,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.stoolStatusClass.normal}" /> <TextView android:layout_width="wrap_content" @@ -1193,7 +1269,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.stoolStatusClass.constipation}" /> <TextView android:layout_width="wrap_content" @@ -1214,7 +1291,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.stoolStatusClass.diarrhea}" /> <TextView android:layout_width="wrap_content" @@ -1235,7 +1313,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.stoolStatusClass.incontinence}" /> <TextView android:layout_width="wrap_content" @@ -1257,20 +1336,26 @@ android:alpha="0.54" android:layout_marginTop="20dp" /> - <LinearLayout + <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" > <LinearLayout + android:id="@+id/ll_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toStartOf="@id/ll_2" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintHorizontal_chainStyle="spread_inside" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.urineStatusClass.normal}" /> <TextView android:layout_width="wrap_content" @@ -1283,15 +1368,19 @@ /> </LinearLayout> <LinearLayout + android:id="@+id/ll_2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" - android:layout_marginStart="20dp" + app:layout_constraintStart_toEndOf="@id/ll_1" + app:layout_constraintEnd_toStartOf="@id/ll_3" + app:layout_constraintTop_toTopOf="parent" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.urineStatusClass.nightUrinaryRetention}" /> <TextView android:layout_width="wrap_content" @@ -1304,15 +1393,18 @@ /> </LinearLayout> <LinearLayout + android:id="@+id/ll_3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" - android:layout_marginStart="20dp" - > + app:layout_constraintStart_toEndOf="@id/ll_2" + app:layout_constraintEnd_toStartOf="@id/ll_4" + app:layout_constraintTop_toTopOf="parent" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.urineStatusClass.incontinence}" /> <TextView android:layout_width="wrap_content" @@ -1325,15 +1417,18 @@ /> </LinearLayout> <LinearLayout + android:id="@+id/ll_4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" - android:layout_marginStart="20dp" - > + app:layout_constraintStart_toEndOf="@id/ll_3" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.urineStatusClass.enuresis}" /> <TextView android:layout_width="wrap_content" @@ -1345,7 +1440,7 @@ android:layout_marginStart="8dp" /> </LinearLayout> - </LinearLayout> + </androidx.constraintlayout.widget.ConstraintLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -1368,7 +1463,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.eatingHabitsClass.uniformityOfMeatAndVegetables}" /> <TextView android:layout_width="wrap_content" @@ -1394,7 +1490,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.eatingHabitsClass.meat}" /> <TextView android:layout_width="wrap_content" @@ -1420,7 +1517,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.eatingHabitsClass.vegetable}" /> <TextView android:layout_width="wrap_content" @@ -1446,7 +1544,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.eatingHabitsClass.salt}" /> <TextView android:layout_width="wrap_content" @@ -1472,7 +1571,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.eatingHabitsClass.oil}" /> <TextView android:layout_width="wrap_content" @@ -1498,7 +1598,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.eatingHabitsClass.sugar}" /> <TextView android:layout_width="wrap_content" @@ -1524,7 +1625,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.eatingHabitsClass.other}" /> <TextView android:layout_width="wrap_content" @@ -1560,7 +1662,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.lifeEventClass.bereave}" /> <TextView android:layout_width="wrap_content" @@ -1582,7 +1685,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.lifeEventClass.liveAlone}" /> <TextView android:layout_width="wrap_content" @@ -1609,7 +1713,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.lifeEventClass.inHospital}" /> <TextView android:layout_width="wrap_content" @@ -1618,7 +1723,7 @@ android:text="涓�骞翠箣鍐呬綇闄㈡不鐤�" android:textColor="#DE000000" android:textSize="16sp" - android:layout_marginStart="8dp" + android:layout_marginStart="5dp" /> </LinearLayout> @@ -1632,7 +1737,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareLifeHabitsBeanLiveData.lifeEventClass.divide}" /> <TextView android:layout_width="wrap_content" @@ -1658,6 +1764,7 @@ android:layout_marginTop="10dp" app:cardCornerRadius="10dp" app:cardElevation="2dp" + app:cardBackgroundColor="@color/white" tools:layout_height="wrap_content" > <LinearLayout @@ -1713,14 +1820,18 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="26.5 掳C" + 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" + android:inputType="text" /> <View android:layout_width="match_parent" @@ -1745,16 +1856,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="60涓�/鍒�" + 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" - android:drawableStart="@drawable/ic_radio_button" - android:drawablePadding="8dp" + android:inputType="text" /> <View android:layout_width="match_parent" @@ -1784,14 +1896,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="120" + 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" + android:inputType="text" /> <View android:layout_width="match_parent" @@ -1816,14 +1931,17 @@ android:textSize="12sp" android:alpha="0.54" /> - <TextView - android:layout_width="wrap_content" + <EditText + android:layout_width="match_parent" android:layout_height="wrap_content" - android:maxLines="1" - android:text="65kg" + 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" + android:inputType="text" /> <View android:layout_width="match_parent" @@ -1855,7 +1973,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.acne}" /> <TextView android:layout_width="wrap_content" @@ -1876,12 +1995,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" - android:layout_marginStart="20dp" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.psoriasis}" /> <TextView android:layout_width="wrap_content" @@ -1902,12 +2021,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" - android:layout_marginStart="20dp" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.color}" /> <TextView android:layout_width="wrap_content" @@ -1928,12 +2047,12 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" - android:layout_marginStart="20dp" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.edema}" /> <TextView android:layout_width="wrap_content" @@ -1959,7 +2078,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.rash}" /> <TextView android:layout_width="wrap_content" @@ -1984,7 +2104,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.bloodStasis}" /> <TextView android:layout_width="wrap_content" @@ -2009,7 +2130,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.snom}" /> <TextView android:layout_width="wrap_content" @@ -2035,7 +2157,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.nevus}" /> <TextView android:layout_width="wrap_content" @@ -2056,7 +2179,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.skinTypeClass.ulcer}" /> <TextView android:layout_width="wrap_content" @@ -2096,7 +2220,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.psychologyTypeClass.optimistic}" /> <TextView android:layout_width="wrap_content" @@ -2121,7 +2246,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.psychologyTypeClass.worry}" /> <TextView android:layout_width="wrap_content" @@ -2146,7 +2272,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.psychologyTypeClass.fear}" /> <TextView android:layout_width="wrap_content" @@ -2172,7 +2299,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.psychologyTypeClass.suspicion}" /> <TextView android:layout_width="wrap_content" @@ -2197,7 +2325,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.psychologyTypeClass.constrain}" /> <TextView android:layout_width="wrap_content" @@ -2222,7 +2351,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.psychologyTypeClass.miss}" /> <TextView android:layout_width="wrap_content" @@ -2257,7 +2387,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.attitudeClass.lucidity}" /> <TextView android:layout_width="wrap_content" @@ -2282,7 +2413,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.attitudeClass.unknown}" /> <TextView android:layout_width="wrap_content" @@ -2307,7 +2439,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.attitudeClass.normal}" /> <TextView android:layout_width="wrap_content" @@ -2332,7 +2465,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.attitudeClass.abnormal}" /> <TextView android:layout_width="wrap_content" @@ -2367,7 +2501,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.nutritionClass.good}" /> <TextView android:layout_width="wrap_content" @@ -2392,7 +2527,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.nutritionClass.medium}" /> <TextView android:layout_width="wrap_content" @@ -2417,7 +2553,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.nutritionClass.poor}" /> <TextView android:layout_width="wrap_content" @@ -2442,7 +2579,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareNursingExaminationBeanLiveData.nutritionClass.obesity}" /> <TextView android:layout_width="wrap_content" @@ -2468,6 +2606,7 @@ android:layout_marginTop="10dp" app:cardCornerRadius="10dp" app:cardElevation="2dp" + app:cardBackgroundColor="@color/white" tools:layout_height="wrap_content" > <LinearLayout @@ -2525,7 +2664,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.brainDiseaseClass.ischemicStroke}" /> <TextView android:layout_width="wrap_content" @@ -2550,7 +2690,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.brainDiseaseClass.cerebralHemorrhage}" /> <TextView android:layout_width="wrap_content" @@ -2575,7 +2716,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.brainDiseaseClass.other}" /> <TextView android:layout_width="wrap_content" @@ -2601,7 +2743,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.brainDiseaseClass.subarachnoidHemorrhage}" /> <TextView android:layout_width="wrap_content" @@ -2626,7 +2769,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.brainDiseaseClass.tia}" /> <TextView android:layout_width="wrap_content" @@ -2661,7 +2805,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.heartDiseaseClass.myocardialInfarct}" /> <TextView android:layout_width="wrap_content" @@ -2686,7 +2831,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.heartDiseaseClass.anginaPectoris}" /> <TextView android:layout_width="wrap_content" @@ -2711,7 +2857,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.heartDiseaseClass.congestiveHeartFailure}" /> <TextView android:layout_width="wrap_content" @@ -2737,7 +2884,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.heartDiseaseClass.coronaryRevascularization}" /> <TextView android:layout_width="wrap_content" @@ -2762,7 +2910,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.heartDiseaseClass.precordialPain}" /> <TextView android:layout_width="wrap_content" @@ -2788,7 +2937,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.heartDiseaseClass.other}" /> <TextView android:layout_width="wrap_content" @@ -2823,7 +2973,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.vascularDiseaseClass.dissectingAneurysm}" /> <TextView android:layout_width="wrap_content" @@ -2848,7 +2999,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.vascularDiseaseClass.arterialOcclusiveDiseases}" /> <TextView android:layout_width="wrap_content" @@ -2873,7 +3025,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.vascularDiseaseClass.other}" /> <TextView android:layout_width="wrap_content" @@ -2908,7 +3061,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.gastroduodenalUlcer}" /> <TextView android:layout_width="wrap_content" @@ -2933,7 +3087,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.esophagitis}" /> <TextView android:layout_width="wrap_content" @@ -2959,7 +3114,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.gastritis}" /> <TextView android:layout_width="wrap_content" @@ -2984,13 +3140,14 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.colitis}" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" - android:text="鑲濈値" + android:text="婧冪枴鎬х粨鑲犵値" android:textColor="#DE000000" android:textSize="16sp" android:layout_marginStart="8dp" @@ -3009,13 +3166,14 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.hepatitis}" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" - android:text="鍏跺畠" + android:text="鑲濈値" android:textColor="#DE000000" android:textSize="16sp" android:layout_marginStart="8dp" @@ -3035,7 +3193,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.cholecystitis}" /> <TextView android:layout_width="wrap_content" @@ -3060,7 +3219,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.cholelithiasis}" /> <TextView android:layout_width="wrap_content" @@ -3085,7 +3245,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.fattyLiver}" /> <TextView android:layout_width="wrap_content" @@ -3111,7 +3272,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.hyperlipidemia}" /> <TextView android:layout_width="wrap_content" @@ -3136,7 +3298,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.haemorrhoids}" /> <TextView android:layout_width="wrap_content" @@ -3161,7 +3324,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.digestiveSystemDiseaseClass.other}" /> <TextView android:layout_width="wrap_content" @@ -3196,7 +3360,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.respiratorySystemDiseaseClass.copd}" /> <TextView android:layout_width="wrap_content" @@ -3221,7 +3386,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.respiratorySystemDiseaseClass.pneumonia}" /> <TextView android:layout_width="wrap_content" @@ -3246,7 +3412,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.respiratorySystemDiseaseClass.bronchitis}" /> <TextView android:layout_width="wrap_content" @@ -3272,7 +3439,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.respiratorySystemDiseaseClass.bronchialAsthma}" /> <TextView android:layout_width="wrap_content" @@ -3297,7 +3465,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.respiratorySystemDiseaseClass.pulmonaryTuberculosis}" /> <TextView android:layout_width="wrap_content" @@ -3322,7 +3491,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.respiratorySystemDiseaseClass.upperRespiratoryTractInfection}" /> <TextView android:layout_width="wrap_content" @@ -3348,7 +3518,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.respiratorySystemDiseaseClass.other}" /> <TextView android:layout_width="wrap_content" @@ -3383,7 +3554,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.kidneyDiseaseClass.diabetes}" /> <TextView android:layout_width="wrap_content" @@ -3408,7 +3580,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.kidneyDiseaseClass.renalFailure}" /> <TextView android:layout_width="wrap_content" @@ -3433,7 +3606,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.kidneyDiseaseClass.acuteNephritis}" /> <TextView android:layout_width="wrap_content" @@ -3460,7 +3634,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.kidneyDiseaseClass.chronicNephritis}" /> <TextView android:layout_width="wrap_content" @@ -3481,7 +3656,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.kidneyDiseaseClass.urinaryCalculus}" /> <TextView android:layout_width="wrap_content" @@ -3508,7 +3684,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.kidneyDiseaseClass.urinaryTractInfection}" /> <TextView android:layout_width="wrap_content" @@ -3529,7 +3706,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.kidneyDiseaseClass.other}" /> <TextView android:layout_width="wrap_content" @@ -3565,7 +3743,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.otherDiseaseClass.pregnant}" /> <TextView android:layout_width="wrap_content" @@ -3586,7 +3765,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.otherDiseaseClass.cold}" /> <TextView android:layout_width="wrap_content" @@ -3613,7 +3793,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.otherDiseaseClass.infectious}" /> <TextView android:layout_width="wrap_content" @@ -3634,7 +3815,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.otherDiseaseClass.pulmonaryBulla}" /> <TextView android:layout_width="wrap_content" @@ -3660,7 +3842,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.otherDiseaseClass.hemoptysis}" /> <TextView android:layout_width="wrap_content" @@ -3687,7 +3870,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.otherDiseaseClass.pneumothorax}" /> <TextView android:layout_width="wrap_content" @@ -3708,7 +3892,8 @@ <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/ic_radio_button_selected" + android:clickable="@{viewModel.typeLiveData}" + app:select_state="@={viewModel.healthCareExistingProblemsBeanLiveData.otherDiseaseClass.activeBleeding}" /> <TextView android:layout_width="wrap_content" @@ -3741,8 +3926,8 @@ app:tabIndicatorHeight="0dp" app:tabGravity="fill" /> - <TextView - android:id="@+id/tv_fill" + <EditText + android:id="@+id/et_fill" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/shape_fffad1e0_stroke_0_10_10_10" @@ -3750,9 +3935,24 @@ android:paddingVertical="10dp" android:layout_marginHorizontal="20dp" app:layout_constraintTop_toBottomOf="@id/tab_layout" + android:enabled="@{viewModel.typeLiveData}" + android:hint="@{viewModel.typeLiveData ? `璇峰~鍐檂 : ``}" + android:inputType="textMultiLine" + android:textColor="#FF131215" /> </LinearLayout> - </ScrollView> + </androidx.core.widget.NestedScrollView> + <androidx.constraintlayout.utils.widget.ImageFilterView + android:id="@+id/fab_move_to_top" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + android:layout_marginEnd="25dp" + android:layout_marginBottom="44dp" + app:fabCustomSize="100dp" + android:background="@drawable/ic_move_to_top" + /> </androidx.constraintlayout.widget.ConstraintLayout> </layout> \ No newline at end of file -- Gitblit v1.9.1