item_comment_title.xml
3.47 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
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
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
>
<data>
<variable
name="data"
type="com.cnlive.gundam.main.model.CommentTitleViewModel"></variable>
<variable
name="itemP"
type="com.cnlive.gundam.video.fragment.CommentDetailsFragment.OnBindItemClick"/>
</data>
<LinearLayout
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="48dp">
<TextView
android:id="@+id/comment_title_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="12dp"
android:text="评论"
android:textSize="14sp" />
<TextView
android:id="@+id/comment_title_tv_nums"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/comment_title_tv"
android:layout_toRightOf="@id/comment_title_tv"
android:textSize="10sp"
android:text="@{data.count}" />
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/color_cutline_ececec" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="63dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="15dp">
<ImageView
android:id="@+id/comment_title_img_head"
android:layout_width="29dp"
android:layout_height="29dp"
android:layout_marginRight="16dp"
/>
<RelativeLayout
android:onClick="@{v->itemP.onCommentClick()}"
android:id="@+id/comment_title_layout_comment"
android:layout_width="290dp"
android:layout_height="wrap_content"
android:background="@drawable/circle_corner_gray"
android:orientation="horizontal"
android:paddingRight="10dp">
<TextView
android:id="@+id/comment_title_tv_textlimit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:textColor="@color/color_text_normal_999"
android:textSize="11sp" />
<TextView
android:id="@+id/comment_title_et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/comment_title_tv_textlimit"
android:background="@null"
android:gravity="center_vertical"
android:hint="我要评论~"
android:includeFontPadding="false"
android:paddingLeft="15dp"
android:textColor="#a1a1a1"
android:textSize="13sp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</layout>