| | |
| | | android:id="@+id/titleBar" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | app:title="@{viewModel.beanMutableLiveData.id==0?`新增家大事记`:viewModel.beanMutableLiveData.title}" |
| | | app:title="@{viewModel.beanLiveData.id==0?`新增家大事记`:viewModel.beanLiveData.title}" |
| | | app:titleGravity="left" |
| | | > |
| | | <FrameLayout |
| | |
| | | android:textColorHint="#6b000000" |
| | | android:textColor="#DE000000" |
| | | android:textSize="16sp" |
| | | android:text="@={viewModel.beanMutableLiveData.title}" |
| | | android:text="@={viewModel.beanLiveData.title}" |
| | | android:enabled="@{viewModel.typeLiveData}" |
| | | /> |
| | | |
| | |
| | | android:layout_marginTop="@dimen/dp_2" |
| | | android:hint="@{viewModel.typeLiveData?`请输入时间(格式:2001-01-01)`:``}" |
| | | android:inputType="text" |
| | | android:text="@={viewModel.beanMutableLiveData.happenTime}" |
| | | android:text="@={viewModel.beanLiveData.happenTime}" |
| | | android:textColor="#DE000000" |
| | | android:textColorHint="#6b000000" |
| | | android:textSize="16sp" |
| | |
| | | android:inputType="text" |
| | | android:hint="@{viewModel.typeLiveData?`请输入人物`:``}" |
| | | android:textColorHint="#6b000000" |
| | | android:text="@={viewModel.beanMutableLiveData.people}" |
| | | android:text="@={viewModel.beanLiveData.people}" |
| | | android:textColor="#DE000000" |
| | | android:textSize="16sp" |
| | | android:enabled="@{viewModel.typeLiveData}" |
| | |
| | | android:hint="@{viewModel.typeLiveData?`请输入地点`:``}" |
| | | android:textColorHint="#6b000000" |
| | | android:textColor="#DE000000" |
| | | android:text="@={viewModel.beanMutableLiveData.address}" |
| | | android:text="@={viewModel.beanLiveData.address}" |
| | | android:textSize="16sp" |
| | | android:enabled="@{viewModel.typeLiveData}" |
| | | /> |
| | |
| | | android:hint="@{viewModel.typeLiveData?`请输入备注`:``}" |
| | | android:textColorHint="#6b000000" |
| | | android:textColor="#DE000000" |
| | | android:text="@={viewModel.beanMutableLiveData.remark}" |
| | | android:text="@={viewModel.beanLiveData.remark}" |
| | | android:textSize="16sp" |
| | | android:enabled="@{viewModel.typeLiveData}" |
| | | /> |