<?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="bean"
|
type="com.application.zhangshi_app_android.bean.HomeMemberBean" />
|
</data>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
>
|
<androidx.cardview.widget.CardView
|
android:id="@+id/cardView"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_margin="@dimen/dp_2"
|
app:cardCornerRadius="@dimen/dp_10"
|
app:cardBackgroundColor="@color/color_card_pink"
|
app:cardElevation="0dp"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/layout_title"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_40"
|
android:gravity="center_vertical">
|
|
<TextView
|
android:id="@+id/textView2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="24dp"
|
android:text="@{bean.generation}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_16"
|
android:textStyle="bold"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
tools:text="第一代" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:gravity="center"
|
android:text="@{bean.name}"
|
android:textColor="@color/black"
|
android:textSize="@dimen/sp_16"
|
android:textStyle="bold"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintHorizontal_bias="0.55"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
tools:text="张三" />
|
|
<TextView
|
android:id="@+id/tv_time"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.gender}"
|
android:textColor="@color/black"
|
android:textSize="16sp"
|
android:layout_marginEnd="20dp"
|
android:textStyle="bold"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
tools:text="男" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/layout_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:paddingStart="@dimen/dp_24"
|
android:paddingVertical="13dp"
|
>
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
android:id="@+id/imageFilterView2"
|
android:layout_width="100dp"
|
android:layout_height="100dp"
|
android:background="@color/teal_200"
|
app:imageUrl="@{bean.url}"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:round="20dp" />
|
|
<LinearLayout
|
android:id="@+id/linearLayout4"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toEndOf="@+id/imageFilterView2"
|
app:layout_constraintTop_toTopOf="@+id/imageFilterView2"
|
app:layout_constraintBottom_toTopOf="@id/linearLayout5"
|
app:layout_constraintVertical_chainStyle="spread_inside"
|
>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="出生日期 :"
|
android:textColor="#FF000000"
|
android:textSize="12sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.birthday}"
|
android:textColor="#FF000000"
|
android:textSize="12sp"
|
tools:text="2021-01-01" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/linearLayout5"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="@+id/linearLayout4"
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout4"
|
app:layout_constraintBottom_toTopOf="@id/linearLayout6"
|
>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="去世时间 :"
|
android:textColor="#FF000000"
|
android:textSize="12sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.deathDay}"
|
android:textColor="#FF000000"
|
android:textSize="12sp"
|
tools:text="2021-01-01" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/linearLayout6"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="@+id/linearLayout4"
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout5"
|
app:layout_constraintBottom_toTopOf="@id/linearLayout7"
|
>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="手机号 : "
|
android:textColor="#FF000000"
|
android:textSize="12sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.phone}"
|
android:textColor="#FF000000"
|
android:textSize="12sp"
|
tools:text="12345678901" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/linearLayout7"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="@+id/linearLayout4"
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout6"
|
app:layout_constraintBottom_toTopOf="@id/linearLayout8"
|
>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="所在单位 : "
|
android:textColor="#FF000000"
|
android:textSize="12sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.company}"
|
android:textColor="#FF000000"
|
android:textSize="12sp"
|
tools:text="张氏公司" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/linearLayout8"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintBottom_toBottomOf="@+id/imageFilterView2"
|
app:layout_constraintStart_toStartOf="@+id/linearLayout4"
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout7">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="配偶 : "
|
android:textColor="#FF000000"
|
android:textSize="12sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@{bean.spouse}"
|
android:textColor="#FF000000"
|
android:textSize="12sp"
|
tools:text="张三" />
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
|
</layout>
|