item_bind_user.xml
2.09 KB
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
<?xml version="1.0" encoding="utf-8"?>
<layout>
<data>
<variable
name="data"
type="com.cnlive.cloud.user.model.BindPhoneNumberInfo" />
</data>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="77dp"
android:background="@color/white">
<ImageView
android:id="@+id/iv_login"
android:layout_width="47dp"
android:layout_height="47dp"
android:layout_centerVertical="true"
android:layout_marginLeft="15dp"
android:src="@{data.typeIcon}" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="11.5dp"
android:layout_toRightOf="@+id/iv_login"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{data.typeName}"
android:textColor="#ff333333"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{data.userName}"
android:textColor="#ff999999"
android:textSize="12sp" />
</LinearLayout>
<TextView
android:id="@+id/tv_bind"
android:layout_width="68dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="15dp"
android:background="@{data.bind?@drawable/shape_bind_black_bg:@drawable/shape_bind_green_bg}"
android:gravity="center"
android:text="@{data.bind?@string/three_login_bind:@string/three_login_bind_un}"
android:textColor="@color/white" />
</RelativeLayout>
</layout>