<?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.ContactsDetailBean" />
|
</data>
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardBackgroundColor="#FFFFFCFC"
|
app:cardCornerRadius="5dp"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginBottom="5dp"
|
>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<ImageView
|
android:id="@+id/iv_dialog_close"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="15dp"
|
android:layout_marginEnd="15dp"
|
android:background="@drawable/ic_dialog_close"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginVertical="20dp"
|
android:orientation="vertical"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="成员姓名:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.myName == null ? `————` : bean.myName}"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="称呼:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.nickName == null ? `————` : bean.nickName}"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="姓名:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.name == null ? `————` : bean.name}"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="工作单位:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.work == null ? `————` : bean.work}"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="手机:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.phone == null ? `————` : bean.phone}"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:text="其他联系方式:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.wx == null ? `微信号:————` : `微信号:`+ bean.wx}"
|
android:textColor="@color/black"
|
android:textSize="10sp"
|
/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
android:text="@{bean.qq == null ? `QQ号: ————` : `QQ号:`+ bean.qq}"
|
android:textColor="@color/black"
|
android:textSize="10sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.twitter == null ? `推特:————` : `推特:`+ bean.twitter}"
|
android:textColor="@color/black"
|
android:textSize="10sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="是否常联系:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.is_always==1?`是`:`否`}"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="备注"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="(是否存在金钱关系):"
|
android:textColor="@color/black"
|
android:textSize="10sp" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="@{bean.remark == null ? `————` : bean.remark}"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="电子名片:"
|
android:textColor="@color/black"
|
android:textSize="14sp" />
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginVertical="10dp"
|
>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/recyclerView"
|
/>
|
</RelativeLayout>
|
</LinearLayout>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.cardview.widget.CardView>
|
</layout>
|