From ecaf8069072e71db4bff94671e72764b211d6af1 Mon Sep 17 00:00:00 2001 From: Linjiajia <319408893@qq.com> Date: 星期四, 26 十月 2023 00:43:51 +0800 Subject: [PATCH] 功能完善 --- app/src/main/res/layout/activity_annual_health_status_detail.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/activity_annual_health_status_detail.xml b/app/src/main/res/layout/activity_annual_health_status_detail.xml index 127a651..b0b643d 100644 --- a/app/src/main/res/layout/activity_annual_health_status_detail.xml +++ b/app/src/main/res/layout/activity_annual_health_status_detail.xml @@ -18,7 +18,7 @@ <com.android.app_base.widget.ExtendTitleBar android:layout_width="match_parent" android:layout_height="wrap_content" - app:title="@{viewModel.beanLiveData.id==0?`鏂板缓浣撴鎴栫湅鐥卄:viewModel.beanLiveData.title}" + app:title="@{viewModel.beanLiveData.id==-1?`鏂板缓灏卞尰淇℃伅`:viewModel.beanLiveData.title}" app:titleGravity="left" app:leftIcon="@drawable/ic_back" > @@ -43,7 +43,7 @@ > <LinearLayout android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:orientation="vertical" android:paddingHorizontal="20dp" android:paddingBottom="20dp" @@ -55,13 +55,13 @@ android:text="搴忓彿" android:textColor="#767375" android:textSize="12sp" - android:visibility="@{viewModel.typeLiveData}" + android:visibility="@{viewModel.beanLiveData.id!=-1?true:false}" /> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:visibility="@{viewModel.typeLiveData}" + android:visibility="@{viewModel.beanLiveData.id!=-1?true:false}" > <EditText android:id="@+id/et_id" -- Gitblit v1.9.1