| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto" |
| | | android:orientation="vertical" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | app:cardBackgroundColor="#FFFAD1E0" |
| | | app:cardCornerRadius="10dp" |
| | | app:cardElevation="0dp" |
| | | > |
| | | <layout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto"> |
| | | |
| | | <data> |
| | | <import type="android.text.TextUtils" /> |
| | | <import type="android.view.View" /> |
| | | <variable |
| | | name="viewModel" |
| | | type="com.application.zhangshi_app_android.ui.function.FamilyMemorabiliaActivityViewModel" /> |
| | | </data> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="200dp" |
| | | android:layout_height="180dp" |
| | | android:orientation="vertical" |
| | | android:gravity="center_horizontal" |
| | | > |
| | | <TextView |
| | | android:id="@+id/tv_global_search" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:gravity="center" |
| | | android:text="全局搜索" |
| | | android:textColor="#FF333333" |
| | | android:textSize="12sp" |
| | | android:layout_weight="1" |
| | | /> |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0.3dp" |
| | | android:background="#FF939393" |
| | | /> |
| | | <TextView |
| | | android:id="@+id/tv_search_in_family_memorabilia" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:gravity="center" |
| | | android:text="在“家大事记”内搜索" |
| | | android:textColor="#FF333333" |
| | | android:textSize="12sp" |
| | | android:layout_weight="1" |
| | | /> |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0.3dp" |
| | | android:background="#FF939393" |
| | | /> |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@color/white"> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_search_by_title" |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:text="按“大事记标题”搜索" |
| | | android:textColor="#FF333333" |
| | | android:textSize="12sp" /> |
| | | android:layout_height="0.5dp" |
| | | android:background="#FF939393" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="40dp" |
| | | android:layout_marginHorizontal="12dp" |
| | | android:gravity="center"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="标题" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/et_title" |
| | | android:layout_width="0dp" |
| | | android:layout_weight="1" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:inputType="text" |
| | | android:layout_marginStart="6dp" |
| | | android:text="@={viewModel.requestBeanMutableLiveData.title}" |
| | | android:hint="请输入标题" |
| | | android:textColorHint="#61000000" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_clear_title" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:visibility="@{viewModel.requestBeanMutableLiveData.title != null && viewModel.requestBeanMutableLiveData.title.length() > 0 ? View.VISIBLE : View.GONE}" |
| | | android:background="@drawable/ic_clear" /> |
| | | </LinearLayout> |
| | | |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0.3dp" |
| | | android:background="#FF939393" |
| | | /> |
| | | <TextView |
| | | android:id="@+id/tv_search_by_people" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:gravity="center" |
| | | android:text="按“人物”搜索" |
| | | android:textColor="#FF333333" |
| | | android:textSize="12sp" |
| | | android:layout_weight="1" |
| | | /> |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0.3dp" |
| | | android:background="#FF939393" |
| | | /> |
| | | android:background="#FF939393" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_search_by_time" |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_weight="1" |
| | | android:gravity="center" |
| | | android:text="按“时间”搜索" |
| | | android:textColor="#FF333333" |
| | | android:textSize="12sp" /> |
| | | android:layout_height="40dp" |
| | | android:layout_marginHorizontal="12dp" |
| | | android:gravity="center"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="人物" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/et_person" |
| | | android:layout_width="0dp" |
| | | android:layout_weight="1" |
| | | android:inputType="text" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:layout_marginStart="6dp" |
| | | android:text="@={viewModel.requestBeanMutableLiveData.people}" |
| | | android:hint="请输入人物" |
| | | android:textColorHint="#61000000" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_clear_person" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/ic_clear" |
| | | android:visibility="@{TextUtils.isEmpty(viewModel.requestBeanMutableLiveData.people)?View.GONE:View.VISIBLE}" |
| | | /> |
| | | </LinearLayout> |
| | | |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0.3dp" |
| | | android:background="#FF939393" |
| | | /> |
| | | <TextView |
| | | android:id="@+id/tv_search_by_place" |
| | | android:background="#FF939393" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:gravity="center" |
| | | android:text="按“地点”搜索" |
| | | android:textColor="#FF333333" |
| | | android:textSize="12sp" |
| | | android:layout_weight="1" |
| | | /> |
| | | android:layout_height="40dp" |
| | | android:layout_marginHorizontal="12dp" |
| | | android:gravity="center"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="时间" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/et_time" |
| | | android:layout_width="0dp" |
| | | android:layout_weight="1" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:inputType="text" |
| | | android:layout_marginStart="6dp" |
| | | android:text="@={viewModel.requestBeanMutableLiveData.createTime}" |
| | | android:hint="请输入时间" |
| | | android:textColorHint="#61000000" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_clear_time" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/ic_clear" |
| | | android:visibility="@{TextUtils.isEmpty(viewModel.requestBeanMutableLiveData.createTime)?View.GONE:View.VISIBLE}" |
| | | /> |
| | | </LinearLayout> |
| | | |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0.3dp" |
| | | android:background="#FF939393" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="40dp" |
| | | android:layout_marginHorizontal="12dp" |
| | | android:gravity="center"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="地点" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/et_place" |
| | | android:layout_width="0dp" |
| | | android:layout_weight="1" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:layout_marginStart="6dp" |
| | | android:text="@={viewModel.requestBeanMutableLiveData.address}" |
| | | android:inputType="text" |
| | | android:hint="请输入地点" |
| | | android:textColorHint="#61000000" |
| | | android:textColor="#FF333333" |
| | | android:textSize="14sp" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_clear_place" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:background="@drawable/ic_clear" |
| | | android:visibility="@{TextUtils.isEmpty(viewModel.requestBeanMutableLiveData.address)?View.GONE:View.VISIBLE}" |
| | | /> |
| | | </LinearLayout> |
| | | |
| | | |
| | | </LinearLayout> |
| | | |
| | | </androidx.cardview.widget.CardView> |
| | | </layout> |