span>
55
        <ImageView
56
            android:id="@+id/backIcon"
57
            android:layout_width="wrap_content"
58
            android:layout_height="match_parent"
59
            android:paddingLeft="20dp"
60
            android:paddingRight="20dp"
61
            android:src="@drawable/app_white_back_icon"
62
            app:layout_constraintLeft_toLeftOf="parent" />
63
64
        <ImageView
65
            android:id="@+id/moreIcon"
66
            android:layout_width="wrap_content"
67
            android:layout_height="match_parent"
68
            android:paddingLeft="20dp"
69
            android:paddingRight="20dp"
70
            android:src="@drawable/app_header_more_icon"
71
            app:layout_constraintRight_toRightOf="parent" />
43
        app:layout_constraintTop_toTopOf="parent">
72 44
73 45
    </android.support.constraint.ConstraintLayout>
74 46
75
    <!-- 底部视图 -->
76
    <android.support.constraint.ConstraintLayout
77
        android:id="@+id/bottomView"
78
        android:layout_width="match_parent"
79
        android:layout_height="wrap_content"
80
        android:layout_marginBottom="-40dp"
81
        app:layout_constraintBottom_toBottomOf="parent"
82
        tools:background="#f38654">
83
84
        <!-- 主题信息及关闭按钮 -->
85
        <android.support.constraint.ConstraintLayout
86
            android:layout_width="match_parent"
87
            android:layout_height="52dp"
88
            app:layout_constraintBottom_toTopOf="@+id/userInfo"
89
            tools:background="#39bd00">
90
91
            <android.support.constraint.ConstraintLayout
92
                android:id="@+id/topicInfo"
93
                android:layout_width="wrap_content"
94
                android:layout_height="30dp"
95
                android:layout_marginLeft="15dp"
96
                android:background="@drawable/topic_shape"
97
                android:paddingLeft="12dp"
98
                android:paddingRight="12dp"
99
                app:layout_constraintBottom_toBottomOf="parent"
100
                app:layout_constraintLeft_toLeftOf="parent"
101
                app:layout_constraintTop_toTopOf="parent"
102
                tools:background="#ff967d">
103
104
                <ImageView
105
                    android:id="@+id/topicIcon"
106
                    android:layout_width="wrap_content"
107
                    android:layout_height="wrap_content"
108
                    android:src="@drawable/topic_icon"
109
                    app:layout_constraintBottom_toBottomOf="parent"
110
                    app:layout_constraintLeft_toLeftOf="parent"
111
                    app:layout_constraintTop_toTopOf="parent" />
112
113
                <TextView
114
                    android:id="@+id/topicTitle"
115
                    android:layout_width="wrap_content"
116
                    android:layout_height="wrap_content"
117
                    android:paddingLeft="5dp"
118
                    android:textColor="#ffffff"
119
                    android:textSize="11sp"
120
                    app:layout_constraintBottom_toBottomOf="parent"
121
                    app:layout_constraintLeft_toRightOf="@+id/topicIcon"
122
                    app:layout_constraintTop_toTopOf="parent"
123
                    tools:text="#新能源#" />
124
            </android.support.constraint.ConstraintLayout>
125
126
127
            <ImageView
128
                android:id="@+id/closeUnfold"
129
                android:layout_width="22dp"
130
                android:layout_height="22dp"
131
                android:layout_margin="15dp"
132
                android:src="@drawable/icon_close"
133
                android:visibility="gone"
134
                app:layout_constraintBottom_toBottomOf="parent"
135
                app:layout_constraintRight_toRightOf="parent"
136
                app:layout_constraintTop_toTopOf="parent"
137
                tools:background="#013369"
138
                tools:visibility="visible" />
139
        </android.support.constraint.ConstraintLayout>
140
        <!-- 用户信息 -->
141
        <android.support.constraint.ConstraintLayout
142
            android:id="@+id/userInfo"
143
            android:layout_width="wrap_content"
144
            android:layout_height="wrap_content"
145
            android:layout_marginBottom="5dp"
146
            android:paddingLeft="15dp"
147
            app:layout_constraintBottom_toTopOf="@+id/msgContainer"
148
            app:layout_constraintLeft_toLeftOf="parent"
149
            tools:background="#33ccff">
150
151
            <ImageView
152
                android:id="@+id/headImage"
153
                android:layout_width="20dp"
154
                android:layout_height="20dp"
155
                app:layout_constraintBottom_toBottomOf="parent"
156
                app:layout_constraintLeft_toLeftOf="parent"
157
                app:layout_constraintTop_toTopOf="parent"
158
                tools:srcCompat="@tools:sample/avatars[1]" />
159
160
            <android.support.constraint.ConstraintLayout
161
                android:layout_width="wrap_content"
162
                android:layout_height="wrap_content"
163
                android:paddingLeft="5dp"
164
                app:layout_constraintBottom_toBottomOf="parent"
165
                app:layout_constraintLeft_toRightOf="@+id/headImage"
166
                app:layout_constraintTop_toTopOf="parent">
167
168
                <TextView
169
                    android:id="@+id/nickName"
170
                    android:layout_width="wrap_content"
171
                    android:layout_height="wrap_content"
172
                    android:textColor="#ffffff"
173
                    android:textSize="12sp"
174
                    app:layout_constraintLeft_toLeftOf="parent"
175
                    app:layout_constraintTop_toTopOf="parent"
176
                    tools:text="小电" />
177
178
                <TextView
179
                    android:id="@+id/addDate"
180
                    android:layout_width="wrap_content"
181
                    android:layout_height="wrap_content"
182
                    android:textColor="#888888"
183
                    android:textSize="12sp"
184
                    app:layout_constraintBottom_toBottomOf="parent"
185
                    app:layout_constraintLeft_toLeftOf="parent"
186
                    app:layout_constraintTop_toBottomOf="@+id/nickName"
187
                    tools:text="2019-05-29 16:28" />
188
            </android.support.constraint.ConstraintLayout>
189
        </android.support.constraint.ConstraintLayout>
190
191
        <!-- 信息 -->
192
        <android.support.constraint.ConstraintLayout
193
            android:id="@+id/msgContainer"
194
            android:layout_width="match_parent"
195
            android:layout_height="wrap_content"
196
            app:layout_constraintBottom_toTopOf="@+id/progressBar">
197
198
            <TextView
199
                android:id="@+id/msg"
200
                android:layout_width="0dp"
201
                android:layout_height="wrap_content"
202
                android:layout_marginRight="30dp"
203
                android:ellipsize="end"
204
                android:paddingLeft="40dp"
205
                android:paddingRight="10dp"
206
                android:paddingBottom="25dp"
207
                android:scrollbarStyle="outsideOverlay"
208
                android:scrollbars="vertical"
209
                android:textColor="#e2e2e2"
210
                android:textSize="14sp"
211
                app:layout_constraintBottom_toBottomOf="parent"
212
                app:layout_constraintLeft_toLeftOf="parent"
213
                app:layout_constraintRight_toRightOf="parent"
214
                app:layout_constraintTop_toTopOf="parent"
215
                tools:text="迪克啥看来当减肥考虑送到,迪克啥看来当减肥考虑送到迪克啥看来当减肥考虑送到" />
216
217
            <ImageView
218
                android:id="@+id/fold"
219
                android:layout_width="42dp"
220
                android:layout_height="62dp"
221
                android:paddingLeft="15dp"
222
                android:paddingTop="25dp"
223
                android:paddingRight="15dp"
224
                android:paddingBottom="25dp"
225
                android:src="@drawable/unfold_icon"
226
                app:layout_constraintBottom_toBottomOf="parent"
227
                app:layout_constraintRight_toRightOf="parent" />
228
        </android.support.constraint.ConstraintLayout>
229
        <!-- 自定义进度条 -->
230
        <ProgressBar
231
            android:id="@+id/progressBar"
232
            style="@android:style/Widget.ProgressBar.Horizontal"
233
            android:layout_width="match_parent"
234
            android:layout_height="1dp"
235
            android:max="100"
236
            android:progressDrawable="@drawable/video_player_progressbar"
237
            app:layout_constraintBottom_toTopOf="@+id/toolBar"
238
            tools:progress="50" />
239
        <!-- 底部工具栏 -->
240
        <android.support.constraint.ConstraintLayout
241
            android:id="@+id/toolBar"
242
            android:layout_width="match_parent"
243
            android:layout_height="50dp"
244
            app:layout_constraintBottom_toBottomOf="parent"
245
            tools:background="#00aee6">
246
247
            <!-- 写评论-->
248
            <android.support.constraint.ConstraintLayout
249
                android:id="@+id/writeComment"
250
                android:layout_width="wrap_content"
251
                android:layout_height="match_parent"
252
                android:paddingLeft="15dp"
253
                android:paddingRight="15dp"
254
                app:layout_constraintLeft_toLeftOf="parent">
255
256
                <ImageView
257
                    android:id="@+id/WriteCommentIcon"
258
                    android:layout_width="wrap_content"
259
                    android:layout_height="wrap_content"
260
                    app:layout_constraintBottom_toBottomOf="parent"
261
                    app:layout_constraintLeft_toLeftOf="parent"
262
                    app:layout_constraintTop_toTopOf="parent"
263
                    app:srcCompat="@drawable/write_comment_icon" />
264
265
                <TextView
266
                    android:layout_width="wrap_content"
267
                    android:layout_height="match_parent"
268
                    android:gravity="center"
269
                    android:paddingLeft="3dp"
270
                    android:text="写评论"
271
                    android:textColor="#c2c2c2"
272
                    android:textSize="12sp"
273
                    app:layout_constraintLeft_toRightOf="@+id/WriteCommentIcon" />
274
            </android.support.constraint.ConstraintLayout>
275
276
            <!-- 转发 -->
277
            <android.support.constraint.ConstraintLayout
278
                android:id="@+id/transmit"
279
                android:layout_width="wrap_content"
280
                android:layout_height="match_parent"
281
                android:paddingLeft="15dp"
282
                android:paddingRight="15dp"
283
                app:layout_constraintRight_toRightOf="parent">
284
285
                <ImageView
286
                    android:layout_width="wrap_content"
287
                    android:layout_height="wrap_content"
288
                    android:paddingRight="3dp"
289
                    app:layout_constraintBottom_toBottomOf="parent"
290
                    app:layout_constraintRight_toLeftOf="@+id/transmitLabel"
291
                    app:layout_constraintTop_toTopOf="parent"
292
                    app:srcCompat="@drawable/transmit_icon" />
293
294
                <TextView
295
                    android:id="@+id/transmitLabel"
296
                    android:layout_width="wrap_content"
297
                    android:layout_height="match_parent"
298
                    android:gravity="center"
299
                    android:paddingLeft="3dp"
300
                    android:text="转发"
301
                    android:textColor="#888888"
302
                    android:textSize="12sp"
303
                    app:layout_constraintRight_toRightOf="parent" />
304
            </android.support.constraint.ConstraintLayout>
305
306
            <!-- 评论列表 -->
307
            <android.support.constraint.ConstraintLayout
308
                android:id="@+id/comment"
309
                android:layout_width="wrap_content"
310
                android:layout_height="match_parent"
311
                android:paddingLeft="15dp"
312
                android:paddingRight="15dp"
313
                app:layout_constraintRight_toLeftOf="@+id/transmit">
314
315
                <ImageView
316
                    android:layout_width="wrap_content"
317
                    android:layout_height="wrap_content"
318
                    android:src="@drawable/comment_icon"
319
                    app:layout_constraintBottom_toBottomOf="parent"
320
                    app:layout_constraintRight_toLeftOf="@+id/commentLabel"
321
                    app:layout_constraintTop_toTopOf="parent" />
322
323
                <TextView
324
                    android:id="@+id/commentLabel"
325
                    android:layout_width="wrap_content"
326
                    android:layout_height="match_parent"
327
                    android:gravity="center"
328
                    android:paddingLeft="3dp"
329
                    android:textColor="#888888"
330
                    android:textSize="12sp"
331
                    app:layout_constraintRight_toRightOf="parent"
332
                    tools:text="123" />
333
334
            </android.support.constraint.ConstraintLayout>
335
            <!-- 点赞 -->
336
            <android.support.constraint.ConstraintLayout
337
                android:id="@+id/like"
338
                android:layout_width="wrap_content"
339
                android:layout_height="match_parent"
340
                app:layout_constraintRight_toLeftOf="@+id/comment">
341
342
                <ImageView
343
                    android:id="@+id/likeIcon"
344
                    android:layout_width="wrap_content"
345
                    android:layout_height="wrap_content"
346
                    android:src="@drawable/like_icon"
347
                    app:layout_constraintBottom_toBottomOf="parent"
348
                    app:layout_constraintRight_toLeftOf="@+id/likeLabel"
349
                    app:layout_constraintTop_toTopOf="parent" />
350
351
                <TextView
352
                    android:id="@+id/likeLabel"
353
                    android:layout_width="wrap_content"
354
                    android:layout_height="match_parent"
355
                    android:gravity="center"
356
                    android:paddingLeft="3dp"
357
                    android:textColor="#888888"
358
                    android:textSize="12sp"
359
                    app:layout_constraintRight_toRightOf="parent"
360
                    tools:text="999+" />
361
            </android.support.constraint.ConstraintLayout>
362
363
        </android.support.constraint.ConstraintLayout>
364
365
    </android.support.constraint.ConstraintLayout>
47
    <include layout="@layout/fragment_chat_content_common"/>
366 48
</android.support.constraint.ConstraintLayout>

cdzApp - Gogs: Go Git Service

充电桩app代码

huyuguo 578e41f0e1 埋点 7 years ago
XRefreshView f780ba992e remove 7 years ago
app 578e41f0e1 埋点 7 years ago
autolayout e1cf244fe0 remove Useless dependence 7 years ago
gradle e1cf244fe0 remove Useless dependence 7 years ago
keystore 06bd894653 init 7 years ago
library 7082cc0853 remove 7 years ago
videolibrary 578e41f0e1 埋点 7 years ago
zxing fa99484008 崩溃bug修复 7 years ago
.gitignore 769b760623 信息流列表开发 7 years ago
build.gradle 548ae8a830 话题详情页面开发 7 years ago
gradlew 3473529e39 fix video play exception 7 years ago
gradlew.bat e1cf244fe0 remove Useless dependence 7 years ago
icon_sgreen.png e1cf244fe0 remove Useless dependence 7 years ago
settings.gradle a2fcbb9471 视频部分开发 7 years ago