| | |
| | | <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" |
| | | > |
| | |
| | | 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" |
| | | /> |
| | |
| | | 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}" |
| | | /> |
| | | |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_marginTop="10dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="时间" |
| | | android:text="行程时间" |
| | | android:textColor="#767375" |
| | | android:textSize="12sp" |
| | | /> |
| | |
| | | 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" |
| | | /> |
| | |
| | | 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" |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_marginTop="10dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="人物" |
| | | android:text="住宿酒店" |
| | | android:textColor="#767375" |
| | | android:textSize="12sp" |
| | | /> |
| | |
| | | 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}" |
| | | /> |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_marginTop="10dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="旅期" |
| | | android:text="车次/航班" |
| | | android:textColor="#767375" |
| | | android:textSize="12sp" |
| | | /> |
| | |
| | | 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}" |
| | | /> |
| | |
| | | android:layout_width="wrap_content" |
| | | android:layout_marginTop="10dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="持证旅游" |
| | | android:text="使用证件" |
| | | android:textColor="#767375" |
| | | android:textSize="12sp" |
| | | /> |
| | |
| | | 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}" |
| | | /> |