<?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.ContactsBean" />
|
</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="2dp"
|
tools:layout_height="wrap_content"
|
app:cardCornerRadius="@dimen/dp_10"
|
app:cardBackgroundColor="?attr/cardBackgroundColorFirst"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
>
|
<RelativeLayout
|
android:id="@+id/layout_title"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:text="@{bean.myName+` 的 通 讯 录`}"
|
android:textColor="@color/black"
|
android:textSize="16sp"
|
tools:text="张三 的 通 讯 录" />
|
<ImageView
|
android:id="@+id/iv_fold"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/ic_fold"
|
android:layout_marginEnd="10dp"
|
android:layout_alignParentRight="true"
|
android:layout_centerVertical="true"
|
/>
|
</RelativeLayout>
|
<LinearLayout
|
android:id="@+id/layout_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="20dp"
|
>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recyclerView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="25dp"
|
tools:listitem="@layout/item_contacts_detail"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
</layout>
|