Linjiajia
2023-10-07 31b7700b976a46901f67c5d7a00281ca4745fc9f
app/src/main/res/layout/acitivity_tourism_experience_detail.xml
@@ -19,7 +19,7 @@
        <com.android.app_base.widget.ExtendTitleBar
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:title="@{TextUtils.isEmpty(viewModel.beanLiveData.title)?`新建旅游经历`:viewModel.beanLiveData.title}"
            app:title="@{TextUtils.isEmpty(viewModel.beanLiveData.address)?`新建旅游经历`:viewModel.beanLiveData.address}"
            app:titleGravity="left"
            app:leftIcon="@drawable/ic_back"
            >
@@ -53,7 +53,7 @@
                    android:layout_width="wrap_content"
                    android:layout_marginTop="@dimen/dp_10"
                    android:layout_height="@dimen/dp_20"
                    android:text="标题"
                    android:text="行程地点"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
@@ -65,10 +65,10 @@
                    android:inputType="text"
                    android:autofillHints="creditCardNumber"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入标题`:``}"
                    android:hint="@{viewModel.typeLiveData?`请输入行程地点`:``}"
                    android:textColor="#DE000000"
                    android:textSize="16sp"
                    android:text="@={viewModel.beanLiveData.title}"
                    android:text="@={viewModel.beanLiveData.address}"
                    android:enabled="@{viewModel.typeLiveData}"
                    />
@@ -76,7 +76,7 @@
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="时间"
                    android:text="行程时间"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
@@ -89,17 +89,17 @@
                    android:inputType="text"
                    android:textColor="#DE000000"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请选择时间`:``}"
                    android:text="@={viewModel.beanLiveData.happenTime}"
                    android:hint="@{viewModel.typeLiveData?`请选择行程时间`:``}"
                    android:text="@={viewModel.beanLiveData.happenDate}"
                    android:textSize="16sp"
                    android:clickable="@{viewModel.typeLiveData}"
                    android:enabled="@{viewModel.typeLiveData}"
                    app:isEditable="@{false}"
                    />
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="地点"
                    android:text="景点"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
@@ -109,8 +109,8 @@
                    android:layout_marginTop="2dp"
                    android:inputType="text"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入地点`:``}"
                    android:text="@={viewModel.beanLiveData.address}"
                    android:hint="@{viewModel.typeLiveData?`请输入景点`:``}"
                    android:text="@={viewModel.beanLiveData.scenic}"
                    android:textColor="#DE000000"
                    android:enabled="@{viewModel.typeLiveData}"
                    android:textSize="16sp"
@@ -119,7 +119,7 @@
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="人物"
                    android:text="住宿酒店"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
@@ -129,9 +129,161 @@
                    android:layout_marginTop="2dp"
                    android:inputType="text"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入人物`:``}"
                    android:hint="@{viewModel.typeLiveData?`请输入住宿酒店`:``}"
                    android:textColor="#DE000000"
                    android:text="@={viewModel.beanLiveData.people}"
                    android:text="@={viewModel.beanLiveData.hotel}"
                    android:textSize="16sp"
                    android:enabled="@{viewModel.typeLiveData}"
                    />
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="12dp"
                    >
                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:orientation="vertical"
                        >
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="住宿费"
                            android:textColor="#767375"
                            android:textSize="12sp"
                            />
                        <androidx.appcompat.widget.AppCompatEditText
                            android:id="@+id/et_stay"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:inputType="numberDecimal"
                            android:textColorHint="#6b000000"
                            android:textColor="#DE000000"
                            android:text="@={viewModel.beanLiveData.stay}"
                            android:hint="0"
                            app:need_modify_null="@{true}"
                            android:textSize="16sp"
                            android:maxLines="1"
                            android:enabled="@{viewModel.typeLiveData}"
                            />
                    </LinearLayout>
                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:orientation="vertical"
                        android:layout_marginStart="40dp"
                        >
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="交通费"
                            android:textColor="#767375"
                            android:textSize="12sp"
                            />
                        <EditText
                            android:id="@+id/et_traffic"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:inputType="numberDecimal"
                            android:textColorHint="#6b000000"
                            android:textColor="#DE000000"
                            android:text="@={viewModel.beanLiveData.travel}"
                            android:hint="0"
                            app:need_modify_null="@{true}"
                            android:textSize="16sp"
                            android:maxLines="1"
                            android:enabled="@{viewModel.typeLiveData}"
                            />
                    </LinearLayout>
                </LinearLayout>
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="12dp"
                    >
                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:orientation="vertical"
                        >
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="门票费"
                            android:textColor="#767375"
                            android:textSize="12sp"
                            />
                        <EditText
                            android:id="@+id/et_entrance"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:inputType="numberDecimal"
                            android:textColorHint="#6b000000"
                            android:textColor="#DE000000"
                            android:text="@={viewModel.beanLiveData.entrance}"
                            android:hint="0"
                            app:need_modify_null="@{true}"
                            android:textSize="16sp"
                            android:maxLines="1"
                            android:enabled="@{viewModel.typeLiveData}"
                            />
                    </LinearLayout>
                    <LinearLayout
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:orientation="vertical"
                        android:layout_marginStart="40dp"
                        >
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="餐费"
                            android:textColor="#767375"
                            android:textSize="12sp"
                            />
                        <EditText
                            android:id="@+id/et_eat"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:inputType="numberDecimal"
                            android:textColorHint="#6b000000"
                            android:textColor="#DE000000"
                            android:text="@={viewModel.beanLiveData.eat}"
                            android:hint="0"
                            app:need_modify_null="@{true}"
                            android:textSize="16sp"
                            android:maxLines="1"
                            android:enabled="@{viewModel.typeLiveData}"
                            />
                    </LinearLayout>
                </LinearLayout>
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="出行方式"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
                <EditText
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="2dp"
                    android:inputType="text"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入出行方式`:``}"
                    android:textColor="#DE000000"
                    android:text="@={viewModel.beanLiveData.travelMode}"
                    android:textSize="16sp"
                    android:enabled="@{viewModel.typeLiveData}"
                    />
@@ -139,7 +291,7 @@
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="旅期"
                    android:text="车次/航班"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
@@ -149,9 +301,9 @@
                    android:layout_marginTop="2dp"
                    android:inputType="text"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入旅期`:``}"
                    android:hint="@{viewModel.typeLiveData?`请输入车次/航班`:``}"
                    android:textColor="#DE000000"
                    android:text="@={viewModel.beanLiveData.travelPeriod}"
                    android:text="@={viewModel.beanLiveData.flight}"
                    android:textSize="16sp"
                    android:enabled="@{viewModel.typeLiveData}"
                    />
@@ -159,7 +311,7 @@
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="持证旅游"
                    android:text="使用证件"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
@@ -169,70 +321,9 @@
                    android:layout_marginTop="2dp"
                    android:inputType="text"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入持证旅游`:``}"
                    android:hint="@{viewModel.typeLiveData?`请输入使用证件`:``}"
                    android:textColor="#DE000000"
                    android:text="@={viewModel.beanLiveData.certificate}"
                    android:textSize="16sp"
                    android:enabled="@{viewModel.typeLiveData}"
                    />
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="费用"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
                <EditText
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="2dp"
                    android:inputType="numberDecimal"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入费用`:``}"
                    android:textColor="#DE000000"
                    android:text="@={viewModel.beanLiveData.totalPrice}"
                    android:textSize="16sp" />
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="公费或自费"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
                <EditText
                    android:id="@+id/et_self"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="2dp"
                    android:inputType="text"
                    android:textColorHint="#6b000000"
                    android:textColor="#DE000000"
                    tools:text="自费"
                    android:drawablePadding="10dp"
                    app:isEditable="@{false}"
                    android:clickable="@{viewModel.typeLiveData}"
                    android:drawableStart="@drawable/ic_radio_button_selected"
                    android:text="@{viewModel.beanLiveData.self==0?`公费`:`自费`}"
                    android:textSize="16sp" />
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_marginTop="10dp"
                    android:layout_height="wrap_content"
                    android:text="备注"
                    android:textColor="#767375"
                    android:textSize="12sp"
                    />
                <EditText
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="2dp"
                    android:inputType="text"
                    android:textColorHint="#6b000000"
                    android:hint="@{viewModel.typeLiveData?`请输入备注`:``}"
                    android:textColor="#DE000000"
                    android:text="@={viewModel.beanLiveData.remark}"
                    android:text="@={viewModel.beanLiveData.document}"
                    android:textSize="16sp"
                    android:enabled="@{viewModel.typeLiveData}"
                    />