Linjiajia
2023-10-07 31b7700b976a46901f67c5d7a00281ca4745fc9f
app/src/main/res/layout/activity_marriage.xml
@@ -17,7 +17,7 @@
        >
        <com.android.app_base.widget.ExtendTitleBar
            android:id="@+id/extendTitleBar"
            android:id="@+id/titleBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:elevation="10dp"
@@ -26,11 +26,12 @@
            app:titleGravity="left"
            />
        <ScrollView
        <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/extendTitleBar"
            app:layout_constraintTop_toBottomOf="@id/titleBar"
            >
            <LinearLayout
                android:layout_width="match_parent"
@@ -75,7 +76,7 @@
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="张三"
                                android:text="@{viewModel.infoLiveData.name}"
                                android:textColor="#DE000000"
                                android:textSize="14sp"
                                android:layout_marginTop="5dp"
@@ -105,7 +106,7 @@
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="男"
                                android:text="@{viewModel.infoLiveData.sex}"
                                android:textColor="#DE000000"
                                android:textSize="14sp"
                                android:layout_marginTop="5dp"
@@ -140,7 +141,7 @@
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="2010-01-01"
                                android:text="@{viewModel.infoLiveData.birthday}"
                                android:textColor="#DE000000"
                                android:textSize="14sp"
                                android:layout_marginTop="5dp"
@@ -170,7 +171,7 @@
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="汉族"
                                android:text="@{viewModel.infoLiveData.nation}"
                                android:textColor="#DE000000"
                                android:textSize="14sp"
                                android:layout_marginTop="5dp"
@@ -202,14 +203,18 @@
                                android:textSize="12sp"
                                android:alpha="0.54"
                                />
                            <TextView
                            <androidx.appcompat.widget.AppCompatTextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="445222200110233318"
                                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"
@@ -233,13 +238,18 @@
                                android:textSize="12sp"
                                android:alpha="0.54"
                                />
                            <TextView
                            <androidx.appcompat.widget.AppCompatTextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="17818824255"
                                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"
@@ -271,7 +281,7 @@
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="已婚"
                                android:text="@{viewModel.infoLiveData.marryStatus}"
                                android:textColor="#DE000000"
                                android:textSize="14sp"
                                android:layout_marginTop="5dp"
@@ -303,7 +313,7 @@
                            <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="2020-10"
                                android:text="@{viewModel.infoLiveData.marryTime}"
                                android:textColor="#DE000000"
                                android:textSize="14sp"
                                android:layout_marginTop="5dp"
@@ -335,10 +345,10 @@
                                android:textSize="12sp"
                                android:alpha="0.54"
                                />
                            <TextView
                            <androidx.appcompat.widget.AppCompatTextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="广东省广州市"
                                android:text="@{viewModel.infoLiveData.address}"
                                android:textColor="#DE000000"
                                android:textSize="14sp"
                                android:layout_marginTop="5dp"
@@ -367,6 +377,7 @@
                    android:layout_marginHorizontal="14dp"
                    app:cardCornerRadius="10dp"
                    app:cardElevation="3dp"
                    app:cardBackgroundColor="@color/white"
                    tools:layout_height="wrap_content"
                    >
                    <LinearLayout
@@ -375,7 +386,7 @@
                        android:orientation="vertical"
                        android:layout_marginHorizontal="6dp"
                        >
                        <LinearLayout
                        <androidx.constraintlayout.widget.ConstraintLayout
                            android:id="@+id/layout_title_spouse"
                            android:layout_width="match_parent"
                            android:layout_height="50dp"
@@ -388,14 +399,20 @@
                                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"
                                />
                        </LinearLayout>
                        </androidx.constraintlayout.widget.ConstraintLayout>
                        <LinearLayout
                            android:id="@+id/layout_content_spouse"
                            android:layout_width="match_parent"
@@ -426,7 +443,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="张三"
                                        android:text="@{viewModel.infoLiveData.spouseName}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -458,7 +475,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="已婚"
                                        android:text="@{viewModel.infoLiveData.spouseMarryStatus}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -497,7 +514,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="2010-01-01"
                                        android:text="@{viewModel.infoLiveData.spouseBirthday}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -529,7 +546,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="广东省广州市"
                                        android:text="@{viewModel.infoLiveData.spouseAddress}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -542,60 +559,13 @@
                                        />
                                </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="张氏公司"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
                                        android:ellipsize="marquee"
                                        />
                                    <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>
                    </LinearLayout>
                </androidx.cardview.widget.CardView>
                <androidx.cardview.widget.CardView
                    android:id="@+id/card_predecessor"
                    android:layout_width="match_parent"
@@ -604,6 +574,8 @@
                    android:layout_marginTop="10dp"
                    app:cardCornerRadius="10dp"
                    app:cardElevation="2dp"
                    app:cardBackgroundColor="@color/white"
                    tools:layout_height="wrap_content"
                    >
                    <LinearLayout
                        android:layout_width="match_parent"
@@ -611,7 +583,7 @@
                        android:orientation="vertical"
                        android:layout_marginHorizontal="6dp"
                        >
                        <LinearLayout
                        <androidx.constraintlayout.widget.ConstraintLayout
                            android:id="@+id/layout_title_predecessor"
                            android:layout_width="match_parent"
                            android:layout_height="50dp"
@@ -624,207 +596,33 @@
                                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"
                                />
                        </LinearLayout>
                        <LinearLayout
                        </androidx.constraintlayout.widget.ConstraintLayout>
                        <RelativeLayout
                            android:id="@+id/layout_content_predecessor"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:orientation="vertical"
                            >
                            <LinearLayout
                            <androidx.recyclerview.widget.RecyclerView
                                android:id="@+id/rv_predecessor"
                                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="张三"
                                        android:textColor="#B3000000"
                                        android:textSize="16sp"
                                        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="离婚"
                                        android:textColor="#B3000000"
                                        android:textSize="16sp"
                                        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="2010-01-01"
                                        android:textColor="#B3000000"
                                        android:textSize="16sp"
                                        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="广东省广州市"
                                        android:textColor="#B3000000"
                                        android:textSize="16sp"
                                        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"
                                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="张氏公司"
                                        android:textColor="#B3000000"
                                        android:textSize="16sp"
                                        android:layout_marginTop="5dp"
                                        android:ellipsize="marquee"
                                        />
                                    <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>
                                tools:listitem="@layout/item_old_spouse"
                                tools:itemCount="3"
                                />
                        </RelativeLayout>
                    </LinearLayout>
@@ -837,6 +635,8 @@
                    android:layout_marginTop="10dp"
                    app:cardCornerRadius="10dp"
                    app:cardElevation="2dp"
                    app:cardBackgroundColor="@color/white"
                    tools:layout_height="wrap_content"
                    >
                    <LinearLayout
                        android:layout_width="match_parent"
@@ -844,7 +644,7 @@
                        android:orientation="vertical"
                        android:layout_marginHorizontal="6dp"
                        >
                        <LinearLayout
                        <androidx.constraintlayout.widget.ConstraintLayout
                            android:id="@+id/layout_title_procreate"
                            android:layout_width="match_parent"
                            android:layout_height="50dp"
@@ -857,20 +657,25 @@
                                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"
                                />
                        </LinearLayout>
                        </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"
@@ -895,7 +700,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="已生育"
                                        android:text="@{viewModel.infoLiveData.bearStatus}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -942,7 +747,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="是"
                                        android:text="@{viewModel.infoLiveData.handbookStatus}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -990,7 +795,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="是"
                                        android:text="@{viewModel.infoLiveData.oneBorn}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -1024,7 +829,7 @@
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:maxLines="1"
                                        android:text="2023-01-01"
                                        android:text="@{viewModel.infoLiveData.oneBornTime}"
                                        android:textColor="#DE000000"
                                        android:textSize="14sp"
                                        android:layout_marginTop="5dp"
@@ -1069,16 +874,17 @@
                        android:layout_height="wrap_content"
                        android:textSize="16sp"
                        android:textColor="#FF131215"
                        android:text="需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文需声明的情况正文"
                        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="2005年12月20日"
                        android:text="@{viewModel.infoLiveData.contentTime}"
                        android:layout_marginTop="12dp"
                        android:layout_gravity="end"
                        tools:text=""
                        />
                </LinearLayout>
                <TextView
@@ -1107,14 +913,14 @@
                        android:layout_height="wrap_content"
                        android:textSize="16sp"
                        android:textColor="#FF131215"
                        android:text="备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文备注正文"
                        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="2005年12月20日"
                        android:text="@{viewModel.infoLiveData.remarkTime}"
                        android:layout_marginTop="12dp"
                        android:layout_gravity="end"
                        />
@@ -1122,6 +928,46 @@
            </LinearLayout>
        </ScrollView>
        </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>