<?xml version="1.0" encoding="utf-8"?>
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
>
|
|
<data>
|
<variable
|
name="viewModel"
|
type="com.application.zhangshi_app_android.ui.function.MarriageActivityViewModel" />
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/color_normal_background"
|
>
|
|
<com.android.app_base.widget.ExtendTitleBar
|
android:id="@+id/titleBar"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:elevation="10dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:title="个人婚姻(仅供查看)"
|
app:titleGravity="left"
|
/>
|
|
<androidx.core.widget.NestedScrollView
|
android:id="@+id/nestedScrollView"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/titleBar"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingBottom="20dp"
|
>
|
<LinearLayout
|
android:id="@+id/ll_basic_information"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginHorizontal="20dp"
|
android:layout_marginVertical="16dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="基本信息"
|
android:textColor="@color/black"
|
android:textSize="20sp"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
>
|
<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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.name}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.sex}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
>
|
<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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.birthday}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.nation}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
>
|
<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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.idNo}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
android:ellipsize="marquee"
|
android:maxLines="1"
|
app:autoSizeTextType="uniform"
|
app:autoSizeMaxTextSize="14sp"
|
app:autoSizeMinTextSize="12sp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.phone}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
android:ellipsize="marquee"
|
android:maxLines="1"
|
app:autoSizeTextType="uniform"
|
app:autoSizeMaxTextSize="14sp"
|
app:autoSizeMinTextSize="12sp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
>
|
<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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.marryStatus}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
android:drawableStart="@drawable/ic_radio_button"
|
android:drawablePadding="8dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.marryTime}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
>
|
<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="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<androidx.appcompat.widget.AppCompatTextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{viewModel.infoLiveData.address}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
android:layout_marginStart="40dp"
|
>
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
<androidx.cardview.widget.CardView
|
android:id="@+id/card_spouse"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginHorizontal="14dp"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="3dp"
|
tools:layout_height="wrap_content"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginHorizontal="6dp"
|
>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/layout_title_spouse"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:gravity="center_vertical"
|
>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:text="配偶情况"
|
android:textColor="@color/black"
|
android:textSize="20sp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
/>
|
<ImageView
|
android:id="@+id/iv_spouse_fold"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@{viewModel.isSpouseExpendedLiveData?@drawable/ic_unfold:@drawable/ic_fold}"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<LinearLayout
|
android:id="@+id/layout_content_spouse"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<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:maxLines="1"
|
android:text="姓名"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.spouseName}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</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:maxLines="1"
|
android:text="婚姻状况"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.spouseMarryStatus}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
android:drawableStart="@drawable/ic_radio_button"
|
android:drawablePadding="8dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
>
|
<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:maxLines="1"
|
android:text="出生日期"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.spouseBirthday}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</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:maxLines="1"
|
android:text="户籍地址"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.spouseAddress}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/card_predecessor"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginHorizontal="14dp"
|
android:layout_marginTop="10dp"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="2dp"
|
tools:layout_height="wrap_content"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginHorizontal="6dp"
|
>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/layout_title_predecessor"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:gravity="center_vertical"
|
>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:text="前任"
|
android:textColor="#CC000000"
|
android:textSize="18sp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
/>
|
<ImageView
|
android:id="@+id/iv_predecessor_fold"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@{viewModel.isPredecessorExpendedLiveData?@drawable/ic_unfold:@drawable/ic_fold}"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<RelativeLayout
|
android:id="@+id/layout_content_predecessor"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_predecessor"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
tools:listitem="@layout/item_old_spouse"
|
tools:itemCount="3"
|
/>
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
<androidx.cardview.widget.CardView
|
android:id="@+id/card_procreate"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginHorizontal="14dp"
|
android:layout_marginTop="10dp"
|
app:cardCornerRadius="10dp"
|
app:cardElevation="2dp"
|
tools:layout_height="wrap_content"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginHorizontal="6dp"
|
>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/layout_title_procreate"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:gravity="center_vertical"
|
>
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:text="生育情况"
|
android:textColor="@color/black"
|
android:textSize="20sp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
/>
|
<ImageView
|
android:id="@+id/iv_procreate_fold"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@{viewModel.isProcreateExpendedLiveData?@drawable/ic_unfold:@drawable/ic_fold}"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<LinearLayout
|
android:id="@+id/layout_content_procreate"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<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:maxLines="1"
|
android:text="生育状况"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.bearStatus}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
android:drawableStart="@drawable/ic_radio_button"
|
android:drawablePadding="8dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
android:layout_marginStart="40dp"
|
>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
>
|
<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:maxLines="1"
|
android:text="领取《计划生育服务手册》"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.handbookStatus}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
android:drawableStart="@drawable/ic_radio_button"
|
android:drawablePadding="8dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
android:layout_marginStart="40dp"
|
>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="20dp"
|
android:layout_marginBottom="10dp"
|
>
|
<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:maxLines="1"
|
android:text="领取《独生子女证》"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.oneBorn}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
android:drawableStart="@drawable/ic_radio_button"
|
android:drawablePadding="8dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</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:maxLines="1"
|
android:text="领取时间"
|
android:textColor="@color/black"
|
android:textSize="12sp"
|
android:alpha="0.54"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:text="@{viewModel.infoLiveData.oneBornTime}"
|
android:textColor="#DE000000"
|
android:textSize="14sp"
|
android:layout_marginTop="5dp"
|
/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#6B000000"
|
android:layout_marginTop="8dp"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="需声明的情况"
|
android:textColor="@color/black"
|
android:textSize="18sp"
|
android:layout_marginStart="20dp"
|
android:paddingVertical="5dp"
|
android:paddingHorizontal="3dp"
|
android:background="@drawable/shape_fffad1e0_10_10_0_0"
|
android:layout_marginTop="12dp"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="20dp"
|
android:background="@drawable/shape_fffad1e0_stroke_0_10_10_10"
|
android:paddingHorizontal="16dp"
|
android:paddingVertical="10dp"
|
android:orientation="vertical"
|
>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textSize="16sp"
|
android:textColor="#FF131215"
|
android:text="@{viewModel.infoLiveData.notion}"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="16sp"
|
android:textColor="@color/black"
|
android:text="@{viewModel.infoLiveData.contentTime}"
|
android:layout_marginTop="12dp"
|
android:layout_gravity="end"
|
tools:text=""
|
/>
|
</LinearLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="备注"
|
android:textColor="@color/black"
|
android:textSize="18sp"
|
android:layout_marginStart="20dp"
|
android:paddingVertical="3dp"
|
android:paddingHorizontal="5dp"
|
android:background="@drawable/shape_fffad1e0_10_10_0_0"
|
android:layout_marginTop="12dp"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="20dp"
|
android:background="@drawable/shape_fffad1e0_stroke_0_10_10_10"
|
android:paddingHorizontal="16dp"
|
android:paddingVertical="10dp"
|
android:orientation="vertical"
|
>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textSize="16sp"
|
android:textColor="#FF131215"
|
android:text="@{viewModel.infoLiveData.remark}"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="16sp"
|
android:textColor="@color/black"
|
android:text="@{viewModel.infoLiveData.remarkTime}"
|
android:layout_marginTop="12dp"
|
android:layout_gravity="end"
|
/>
|
</LinearLayout>
|
|
|
</LinearLayout>
|
</androidx.core.widget.NestedScrollView>
|
|
<LinearLayout
|
android:id="@+id/layout_data_null"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:gravity="center"
|
android:visibility="gone"
|
tools:visibility="gone"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/titleBar">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/img_data_null"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="18dp"
|
android:text="空空如也~"
|
android:textSize="14sp"
|
android:textColor="#73000000"
|
/>
|
</LinearLayout>
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
android:id="@+id/fab_move_to_top"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginEnd="25dp"
|
android:layout_marginBottom="44dp"
|
app:fabCustomSize="100dp"
|
android:background="@drawable/ic_move_to_top"
|
/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</layout>
|