|
|
@ -4,110 +4,129 @@
|
|
4
|
4
|
xmlns:tools="http://schemas.android.com/tools"
|
|
5
|
5
|
android:id="@+id/topicDetailHeader"
|
|
6
|
6
|
android:layout_width="match_parent"
|
|
7
|
|
android:layout_height="260dp">
|
|
|
7
|
android:layout_height="wrap_content">
|
|
8
|
8
|
|
|
9
|
9
|
<android.support.constraint.ConstraintLayout
|
|
|
10
|
android:id="@+id/topicInfo"
|
|
10
|
11
|
android:layout_width="0dp"
|
|
11
|
|
android:layout_height="200dp"
|
|
|
12
|
android:layout_height="wrap_content"
|
|
12
|
13
|
android:background="#ffffff"
|
|
13
|
14
|
app:layout_constraintEnd_toEndOf="parent"
|
|
14
|
15
|
app:layout_constraintStart_toStartOf="parent"
|
|
15
|
16
|
app:layout_constraintTop_toTopOf="parent">
|
|
16
|
17
|
|
|
17
|
|
<ImageView
|
|
18
|
|
android:id="@+id/headImage"
|
|
19
|
|
android:layout_width="71dp"
|
|
20
|
|
android:layout_height="60dp"
|
|
21
|
|
android:layout_marginStart="15dp"
|
|
22
|
|
android:layout_marginTop="15dp"
|
|
23
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
24
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
25
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
26
|
|
|
|
27
|
|
<TextView
|
|
28
|
|
android:id="@+id/name"
|
|
|
18
|
<android.support.constraint.ConstraintLayout
|
|
|
19
|
android:id="@+id/topicTitle"
|
|
29
|
20
|
android:layout_width="0dp"
|
|
30
|
|
android:layout_height="0dp"
|
|
31
|
|
android:layout_marginStart="5dp"
|
|
32
|
|
android:layout_marginTop="5dp"
|
|
33
|
|
android:layout_marginEnd="15dp"
|
|
34
|
|
android:layout_marginBottom="5dp"
|
|
35
|
|
android:gravity="center_vertical"
|
|
36
|
|
android:maxLines="2"
|
|
37
|
|
android:textColor="#222222"
|
|
38
|
|
android:textSize="17sp"
|
|
39
|
|
android:textStyle="bold"
|
|
40
|
|
app:layout_constraintBottom_toBottomOf="@+id/headImage"
|
|
41
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
42
|
|
app:layout_constraintStart_toEndOf="@+id/headImage"
|
|
43
|
|
app:layout_constraintTop_toTopOf="@+id/headImage"
|
|
44
|
|
tools:text="#车主说车#" />
|
|
|
21
|
android:layout_height="90dp"
|
|
|
22
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
23
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
24
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
25
|
|
|
|
26
|
<ImageView
|
|
|
27
|
android:id="@+id/headImage"
|
|
|
28
|
android:layout_width="71dp"
|
|
|
29
|
android:layout_height="60dp"
|
|
|
30
|
android:layout_marginStart="15dp"
|
|
|
31
|
android:layout_marginTop="15dp"
|
|
|
32
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
33
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
34
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
35
|
|
|
|
36
|
<TextView
|
|
|
37
|
android:id="@+id/name"
|
|
|
38
|
android:layout_width="0dp"
|
|
|
39
|
android:layout_height="0dp"
|
|
|
40
|
android:layout_marginStart="5dp"
|
|
|
41
|
android:layout_marginTop="5dp"
|
|
|
42
|
android:layout_marginEnd="15dp"
|
|
|
43
|
android:layout_marginBottom="5dp"
|
|
|
44
|
android:gravity="center_vertical"
|
|
|
45
|
android:maxLines="2"
|
|
|
46
|
android:textColor="#222222"
|
|
|
47
|
android:textSize="17sp"
|
|
|
48
|
android:textStyle="bold"
|
|
|
49
|
app:layout_constraintBottom_toBottomOf="@+id/headImage"
|
|
|
50
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
51
|
app:layout_constraintStart_toEndOf="@+id/headImage"
|
|
|
52
|
app:layout_constraintTop_toTopOf="@+id/headImage"
|
|
|
53
|
tools:text="#车主说车#" />
|
|
|
54
|
|
|
|
55
|
</android.support.constraint.ConstraintLayout>
|
|
|
56
|
|
|
45
|
57
|
|
|
46
|
58
|
<TextView
|
|
47
|
59
|
android:id="@+id/desc"
|
|
48
|
60
|
android:layout_width="0dp"
|
|
49
|
61
|
android:layout_height="wrap_content"
|
|
50
|
62
|
android:layout_marginStart="15dp"
|
|
51
|
|
android:layout_marginTop="15dp"
|
|
52
|
63
|
android:layout_marginEnd="15dp"
|
|
53
|
|
android:ellipsize="end"
|
|
54
|
|
android:maxLines="3"
|
|
55
|
64
|
android:textColor="#555555"
|
|
56
|
65
|
android:textSize="15sp"
|
|
57
|
66
|
app:layout_constraintEnd_toEndOf="parent"
|
|
58
|
67
|
app:layout_constraintStart_toStartOf="parent"
|
|
59
|
|
app:layout_constraintTop_toBottomOf="@+id/headImage"
|
|
60
|
|
tools:text="电动小汽车,炫13.98万元起,魅15.98万元起,太值了!NEDC综合续航510km" />
|
|
|
68
|
app:layout_constraintTop_toBottomOf="@+id/topicTitle"
|
|
|
69
|
tools:text="电动小汽车,炫13.98万元起,魅15.98万元起" />
|
|
61
|
70
|
|
|
62
|
|
<TextView
|
|
63
|
|
android:id="@+id/readLabel"
|
|
64
|
|
android:layout_width="wrap_content"
|
|
65
|
|
android:layout_height="wrap_content"
|
|
66
|
|
android:layout_marginStart="15dp"
|
|
67
|
|
android:layout_marginBottom="14dp"
|
|
68
|
|
android:text="阅读"
|
|
69
|
|
android:textColor="#555555"
|
|
70
|
|
android:textSize="12sp"
|
|
|
71
|
<android.support.constraint.ConstraintLayout
|
|
|
72
|
android:layout_width="0dp"
|
|
|
73
|
android:layout_height="48dp"
|
|
71
|
74
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
72
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
75
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
76
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
77
|
app:layout_constraintTop_toBottomOf="@+id/desc">
|
|
73
|
78
|
|
|
74
|
|
<TextView
|
|
75
|
|
android:id="@+id/read"
|
|
76
|
|
android:layout_width="wrap_content"
|
|
77
|
|
android:layout_height="wrap_content"
|
|
78
|
|
android:layout_marginStart="5dp"
|
|
79
|
|
android:gravity="center_vertical"
|
|
80
|
|
android:textSize="12sp"
|
|
81
|
|
app:layout_constraintBottom_toBottomOf="@+id/readLabel"
|
|
82
|
|
app:layout_constraintLeft_toRightOf="@+id/readLabel"
|
|
83
|
|
app:layout_constraintTop_toTopOf="@+id/readLabel"
|
|
84
|
|
tools:text="8" />
|
|
|
79
|
<TextView
|
|
|
80
|
android:id="@+id/readLabel"
|
|
|
81
|
android:layout_width="wrap_content"
|
|
|
82
|
android:layout_height="wrap_content"
|
|
|
83
|
android:layout_marginLeft="15dp"
|
|
|
84
|
android:text="阅读"
|
|
|
85
|
android:textColor="#555555"
|
|
|
86
|
android:textSize="12sp"
|
|
|
87
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
88
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
89
|
app:layout_constraintTop_toTopOf="parent" />
|
|
85
|
90
|
|
|
86
|
|
<TextView
|
|
87
|
|
android:id="@+id/joinLabel"
|
|
88
|
|
android:layout_width="wrap_content"
|
|
89
|
|
android:layout_height="wrap_content"
|
|
90
|
|
android:layout_marginStart="30dp"
|
|
91
|
|
android:gravity="center_vertical"
|
|
92
|
|
android:text="参与"
|
|
93
|
|
android:textColor="#555555"
|
|
94
|
|
android:textSize="12sp"
|
|
95
|
|
app:layout_constraintBottom_toBottomOf="@+id/read"
|
|
96
|
|
app:layout_constraintStart_toEndOf="@+id/read"
|
|
97
|
|
app:layout_constraintTop_toTopOf="@+id/read" />
|
|
|
91
|
<TextView
|
|
|
92
|
android:id="@+id/read"
|
|
|
93
|
android:layout_width="wrap_content"
|
|
|
94
|
android:layout_height="wrap_content"
|
|
|
95
|
android:layout_marginStart="5dp"
|
|
|
96
|
android:gravity="center_vertical"
|
|
|
97
|
android:textSize="12sp"
|
|
|
98
|
app:layout_constraintBottom_toBottomOf="@+id/readLabel"
|
|
|
99
|
app:layout_constraintLeft_toRightOf="@+id/readLabel"
|
|
|
100
|
app:layout_constraintTop_toTopOf="@+id/readLabel"
|
|
|
101
|
tools:text="8" />
|
|
98
|
102
|
|
|
99
|
|
<TextView
|
|
100
|
|
android:id="@+id/join"
|
|
101
|
|
android:layout_width="wrap_content"
|
|
102
|
|
android:layout_height="wrap_content"
|
|
103
|
|
android:layout_marginStart="5dp"
|
|
104
|
|
android:gravity="center_vertical"
|
|
105
|
|
android:textColor="#555555"
|
|
106
|
|
android:textSize="12sp"
|
|
107
|
|
app:layout_constraintBottom_toBottomOf="@+id/joinLabel"
|
|
108
|
|
app:layout_constraintStart_toEndOf="@+id/joinLabel"
|
|
109
|
|
app:layout_constraintTop_toTopOf="@+id/joinLabel"
|
|
110
|
|
tools:text="32" />
|
|
|
103
|
<TextView
|
|
|
104
|
android:id="@+id/joinLabel"
|
|
|
105
|
android:layout_width="wrap_content"
|
|
|
106
|
android:layout_height="wrap_content"
|
|
|
107
|
android:layout_marginStart="30dp"
|
|
|
108
|
android:gravity="center_vertical"
|
|
|
109
|
android:text="参与"
|
|
|
110
|
android:textColor="#555555"
|
|
|
111
|
android:textSize="12sp"
|
|
|
112
|
app:layout_constraintBottom_toBottomOf="@+id/read"
|
|
|
113
|
app:layout_constraintStart_toEndOf="@+id/read"
|
|
|
114
|
app:layout_constraintTop_toTopOf="@+id/read" />
|
|
|
115
|
|
|
|
116
|
<TextView
|
|
|
117
|
android:id="@+id/join"
|
|
|
118
|
android:layout_width="wrap_content"
|
|
|
119
|
android:layout_height="wrap_content"
|
|
|
120
|
android:layout_marginStart="5dp"
|
|
|
121
|
android:gravity="center_vertical"
|
|
|
122
|
android:textColor="#555555"
|
|
|
123
|
android:textSize="12sp"
|
|
|
124
|
app:layout_constraintBottom_toBottomOf="@+id/joinLabel"
|
|
|
125
|
app:layout_constraintStart_toEndOf="@+id/joinLabel"
|
|
|
126
|
app:layout_constraintTop_toTopOf="@+id/joinLabel"
|
|
|
127
|
tools:text="32" />
|
|
|
128
|
|
|
|
129
|
</android.support.constraint.ConstraintLayout>
|
|
111
|
130
|
</android.support.constraint.ConstraintLayout>
|
|
112
|
131
|
|
|
113
|
132
|
<android.support.constraint.ConstraintLayout
|
|
|
@ -115,9 +134,11 @@
|
|
115
|
134
|
android:layout_height="50dp"
|
|
116
|
135
|
android:background="#ffffff"
|
|
117
|
136
|
android:orientation="horizontal"
|
|
|
137
|
android:layout_marginTop="10dp"
|
|
118
|
138
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
119
|
139
|
app:layout_constraintEnd_toEndOf="parent"
|
|
120
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
140
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
141
|
app:layout_constraintTop_toBottomOf="@+id/topicInfo">
|
|
121
|
142
|
|
|
122
|
143
|
<android.support.constraint.ConstraintLayout
|
|
123
|
144
|
android:id="@+id/sortConstrainLayout"
|