guoshen
2024-07-01 caead5ad019c24b9a7958f01fa663ea8159aee6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?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.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/transparent"
        android:layout_marginVertical="5dp"
        >
 
        <androidx.constraintlayout.utils.widget.ImageFilterView
            android:id="@+id/iv_avatar"
            android:layout_width="0dp"
            android:layout_height="0dp"
            app:layout_constraintDimensionRatio="1:1"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintBottom_toBottomOf="parent"
            app:round="8dp"
            android:background="@color/white"
            android:layout_margin="5dp"
            app:imageUrl="@{bean.url.split(`,`)[0]}"
            />
 
        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginStart="15dp"
            app:layout_constraintStart_toEndOf="@id/iv_avatar"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            >
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@{bean.name == null?`————`:bean.name}"
                android:maxLines="1"
                android:textColor="@color/black"
                android:textSize="14sp"
                tools:text="姓名"
                />
 
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:layout_marginTop="8dp"
                >
                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:text="@{bean.nickName==null?`——`:bean.nickName}"
                    android:textColor="#80000000"
                    android:textSize="12sp"
                    android:layout_weight="2"
                    android:maxLines="1"
                    tools:text="称呼"
                    android:layout_marginEnd="3dp"
                    android:ellipsize="end"
                    />
 
                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:text="@{bean.work == null?`————`:bean.work}"
                    android:textColor="#80000000"
                    android:textSize="12sp"
                    android:maxLines="1"
                    android:layout_weight="3"
                    tools:text="工作单位"
                    android:layout_marginEnd="3dp"
                    android:ellipsize="end"
                    />
 
                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:text="@{bean.phone == null?`————`:bean.phone}"
                    android:ellipsize="end"
                    android:textColor="#80000000"
                    android:textSize="12sp"
                    android:maxLines="1"
                    android:layout_weight="4"
                    tools:text="12345678901"
                    />
            </LinearLayout>
            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="#BFFFFFFF"
                android:layout_marginTop="8dp"
                />
        </LinearLayout>
 
    </androidx.constraintlayout.widget.ConstraintLayout>
</layout>