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

+ 332 - 1
app/src/main/res/layout/fragment_chat_content_video.xml

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

+ 13 - 0
app/src/main/res/layout/fragment_chat_photo.xml

@ -0,0 +1,13 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<android.support.constraint.ConstraintLayout
3
    xmlns:android="http://schemas.android.com/apk/res/android"
4
    xmlns:app="http://schemas.android.com/apk/res-auto"
5
    xmlns:tools="http://schemas.android.com/tools"
6
    android:layout_width="match_parent"
7
    android:layout_height="match_parent">
8
9
    <com.github.chrisbanes.photoview.PhotoView
10
        android:id="@+id/photoView"
11
        android:layout_width="match_parent"
12
        android:layout_height="match_parent" />
13
</android.support.constraint.ConstraintLayout>

数据埋点 · 57bd1011e2 - Gogs: Go Git Service
huyuguo 7 lat temu
rodzic
commit
57bd1011e2

+ 59 - 3
app/src/main/java/com/electric/chargingpile/activity/ChatContentListActivity.java

@ -61,6 +61,7 @@ import com.shuyu.gsyvideoplayer.listener.GSYVideoProgressListener;
61 61
import com.shuyu.gsyvideoplayer.listener.VideoAllCallBack;
62 62
import com.shuyu.gsyvideoplayer.video.base.GSYVideoView;
63 63
import com.squareup.picasso.Picasso;
64
import com.umeng.analytics.MobclickAgent;
64 65
import com.zhy.http.okhttp.OkHttpUtils;
65 66
import com.zhy.http.okhttp.callback.StringCallback;
66 67
@ -168,6 +169,7 @@ public class ChatContentListActivity extends AppCompatActivity {
168 169
                    play(position);
169 170
                }
170 171
                chatContentPosition = position;
172
171 173
            }
172 174
173 175
            @Override
@ -197,6 +199,8 @@ public class ChatContentListActivity extends AppCompatActivity {
197 199
        }
198 200
199 201
        if (bean.targetType == ChatRecommendBean.TARGET_TYPE_VIDEO) {
202
             MobclickAgent.onEvent(getApplicationContext(), "1072");
203
            MobclickAgent.onEvent(getApplicationContext(), "1092");
200 204
            NetworkUtils.NetworkType networkType = NetworkUtils.getNetworkType();
201 205
            switch (networkType) {
202 206
                case NETWORK_2G:
@ -225,6 +229,8 @@ public class ChatContentListActivity extends AppCompatActivity {
225 229
            }
226 230
227 231
        } else {
232
            MobclickAgent.onEvent(getApplicationContext(), "1051");
233
            MobclickAgent.onEvent(getApplicationContext(), "1071");
228 234
            GSYVideoADManager.onPause();
229 235
            GSYVideoManager.onPause();
230 236
            chatContentFragment.showPhotos();
@ -432,6 +438,13 @@ public class ChatContentListActivity extends AppCompatActivity {
432 438
                    intent = new Intent(getContext(), UserPageActivity.class);
433 439
                    intent.putExtra("targetUserId", bean.addUserId + "");
434 440
                    getContext().startActivity(intent);
441
442
                    if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
443
                        MobclickAgent.onEvent(getContext(), "1091");
444
                    } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
445
                        MobclickAgent.onEvent(getContext(), "1070");
446
                    }
447
435 448
                    break;
436 449
                case R.id.topicInfo: // 跳转话题列表页
437 450
                    if (playIcon != null) {
@ -455,12 +468,37 @@ public class ChatContentListActivity extends AppCompatActivity {
455 468
                case R.id.bottomView: // to do nothing
456 469
                    break;
457 470
                case R.id.writeComment: // 评论列表
471
                    if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
472
                        MobclickAgent.onEvent(getContext(), "1077");
473
                    } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
474
                        MobclickAgent.onEvent(getContext(), "1056");
475
                    }
476
477
                    ChatContentCommentListDialogFragment dialogFragment = ChatContentCommentListDialogFragment.newInstance(bean);
478
                    dialogFragment.setOnCommonDialogFragmentListener(new ChatContentCommentListDialogFragment.OnChatContentCommentListDialogFragmentListener() {
479
                        @Override
480
                        public void updateCommentNum(int num) {
481
                            if (bean.commentNums == 0) {
482
                                commentNumber.setText("");
483
                            } else {
484
                                commentNumber.setText(bean.commentNums < 10000 ? bean.commentNums + "" : String.format("%.1fW", bean.commentNums / 10000f));
485
                            }
486
                        }
487
                    });
488
                    dialogFragment.show(getChildFragmentManager(), "评论列表");
489
                    break;
458 490
                case R.id.comment:
459 491
//                    bean.commentNums
460 492
                    //setViewPagerScroll(false);
461 493
                    //allCommentsContainer.setVisibility(View.VISIBLE);
462
                    ChatContentCommentListDialogFragment dialogFragment = ChatContentCommentListDialogFragment.newInstance(bean);
463
                    dialogFragment.setOnCommonDialogFragmentListener(new ChatContentCommentListDialogFragment.OnChatContentCommentListDialogFragmentListener() {
494
                    if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
495
                        MobclickAgent.onEvent(getContext(), "1079");
496
                    } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
497
                        MobclickAgent.onEvent(getContext(), "1058");
498
                    }
499
500
                    ChatContentCommentListDialogFragment dialogFragmentx = ChatContentCommentListDialogFragment.newInstance(bean);
501
                    dialogFragmentx.setOnCommonDialogFragmentListener(new ChatContentCommentListDialogFragment.OnChatContentCommentListDialogFragmentListener() {
464 502
                        @Override
465 503
                        public void updateCommentNum(int num) {
466 504
                            if (bean.commentNums == 0) {
@ -470,7 +508,7 @@ public class ChatContentListActivity extends AppCompatActivity {
470 508
                            }
471 509
                        }
472 510
                    });
473
                    dialogFragment.show(getChildFragmentManager(), "评论列表");
511
                    dialogFragmentx.show(getChildFragmentManager(), "评论列表");
474 512
                    break;
475 513
                case R.id.allCommentsClose: // 关闭评论
476 514
//                    setViewPagerScroll(true);
@ -729,6 +767,12 @@ public class ChatContentListActivity extends AppCompatActivity {
729 767
                    msg.setMaxLines(Integer.MAX_VALUE);
730 768
                }
731 769
                toolBar.setVisibility(View.GONE);
770
                if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
771
                    MobclickAgent.onEvent(getContext(), "1075");
772
                } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
773
                    MobclickAgent.onEvent(getContext(), "1054");
774
                }
775
732 776
            } else {
733 777
                closeUnfold.setVisibility(View.GONE);
734 778
                fold.setImageResource(R.drawable.fold_icon);
@ -739,6 +783,12 @@ public class ChatContentListActivity extends AppCompatActivity {
739 783
                msg.setText(bean.title);  // 重新赋值,解决...不出现的问题
740 784
741 785
                toolBar.setVisibility(View.VISIBLE);
786
                if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
787
                    MobclickAgent.onEvent(getContext(), "1076");
788
                } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
789
                    MobclickAgent.onEvent(getContext(), "1055");
790
                }
791
742 792
            }
743 793
        }
744 794
@ -746,6 +796,11 @@ public class ChatContentListActivity extends AppCompatActivity {
746 796
            if (bean.likeFlg == 1) {
747 797
                return;
748 798
            }
799
            if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
800
                MobclickAgent.onEvent(getContext(), "1078");
801
            } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
802
                MobclickAgent.onEvent(getContext(), "1057");
803
            }
749 804
            String url = MainApplication.urlNew + "/topic/like.do";
750 805
            Map<String, String> map = new HashMap<>();
751 806
            map.put("targetId", bean.targetId + "");
@ -834,6 +889,7 @@ public class ChatContentListActivity extends AppCompatActivity {
834 889
835 890
                @Override
836 891
                public void onPageSelected(int position) {
892
                    MobclickAgent.onEvent(getContext(), "1052");
837 893
                }
838 894
839 895
                @Override

+ 16 - 3
app/src/main/java/com/electric/chargingpile/activity/PublishItemsActivity.java

@ -106,7 +106,11 @@ public class PublishItemsActivity extends AppCompatActivity implements View.OnCl
106 106
                break;
107 107
            case R.id.publish_picture: // 图文
108 108
                if (checkPublishRadio()) {
109
                    MobclickAgent.onEvent(getApplicationContext(), "1038");
109
                    if (FROM_TOPIC_DETAIL.equals(intentData.getFrom())) {
110
                        MobclickAgent.onEvent(getApplicationContext(), "1043");
111
                    } else {
112
                        MobclickAgent.onEvent(getApplicationContext(), "1038");
113
                    }
110 114
                    intent.setClass(this, PublishPicTopicActivity.class);
111 115
                    intent.putExtra("intent_data", intentData);
112 116
                    startActivity(intent);
@ -114,7 +118,11 @@ public class PublishItemsActivity extends AppCompatActivity implements View.OnCl
114 118
                break;
115 119
            case R.id.publish_video: // 视频
116 120
                if (checkPublishRadio()) {
117
                    MobclickAgent.onEvent(getApplicationContext(), "1005");
121
                    if (FROM_TOPIC_DETAIL.equals(intentData.getFrom())) {
122
                        MobclickAgent.onEvent(getApplicationContext(), "1042");
123
                    } else {
124
                        MobclickAgent.onEvent(getApplicationContext(), "1005");
125
                    }
118 126
                    intent.setClass(this, PublishVideoTopicActivity.class);
119 127
                    intent.putExtra("intent_data", intentData);
120 128
                    startActivity(intent);
@ -171,7 +179,12 @@ public class PublishItemsActivity extends AppCompatActivity implements View.OnCl
171 179
    }
172 180
173 181
    private void backOperate() {
174
        MobclickAgent.onEvent(this.getApplicationContext(), "1040");
182
        if (FROM_TOPIC_DETAIL.equals(intentData.getFrom())) {
183
            MobclickAgent.onEvent(this.getApplicationContext(), "1044");
184
        } else {
185
            MobclickAgent.onEvent(this.getApplicationContext(), "1040");
186
        }
187
175 188
        PublishItemsActivity.this.finish();
176 189
    }
177 190
}

+ 3 - 0
app/src/main/java/com/electric/chargingpile/activity/TopicDetailActivity.java

@ -35,6 +35,7 @@ import com.electric.chargingpile.util.LoadingDialog;
35 35
import com.electric.chargingpile.util.NetUtil;
36 36
import com.electric.chargingpile.util.ToastUtil;
37 37
import com.qmuiteam.qmui.widget.dialog.QMUIBottomSheet;
38
import com.umeng.analytics.MobclickAgent;
38 39
import com.zhy.http.okhttp.OkHttpUtils;
39 40
import com.zhy.http.okhttp.callback.StringCallback;
40 41
@ -206,9 +207,11 @@ public class TopicDetailActivity extends AppCompatActivity implements View.OnCli
206 207
                finish();
207 208
                break;
208 209
            case R.id.shareTextView: // 右上角分享功能
210
                MobclickAgent.onEvent(getApplicationContext(), "1048");
209 211
                shareInfo();
210 212
                break;
211 213
            case R.id.chatPublishIcon: // 发布功能
214
                MobclickAgent.onEvent(getApplicationContext(), "1041");
212 215
                chatPublishTips.setVisibility(View.GONE);
213 216
                ProfileManager.getInstance().setClickedUserPublishTopic(getApplicationContext(), "label");
214 217
                isFirst = false;

+ 6 - 1
app/src/main/java/com/electric/chargingpile/adapter/ChatRecommendAdapter.java

@ -168,6 +168,11 @@ public class ChatRecommendAdapter extends RecyclerView.Adapter<IViewHolder> {
168 168
            contentViewHolder.topic_item.setOnClickListener(new View.OnClickListener() {
169 169
                @Override
170 170
                public void onClick(View view) {
171
                    if (bean.isTop == 1) {
172
                        MobclickAgent.onEvent(context, "1096");
173
                    } else {
174
                        MobclickAgent.onEvent(context, "1050");
175
                    }
171 176
                    Intent intent = new Intent(context, TopicDetailActivity.class);
172 177
                    intent.putExtra("topicId", bean.targetId);
173 178
                    context.startActivity(intent);
@ -318,7 +323,7 @@ public class ChatRecommendAdapter extends RecyclerView.Adapter<IViewHolder> {
318 323
                Intent intent = new Intent(context, TopicDetailActivity.class);
319 324
                intent.putExtra("topicId", bean.topicId);
320 325
                context.startActivity(intent);
321
                MobclickAgent.onEvent(context, "1096");
326
                MobclickAgent.onEvent(context, "1049");
322 327
            }
323 328
        });
324 329
    }

+ 4 - 0
app/src/main/java/com/electric/chargingpile/adapter/TopicDetailAdapter.java

@ -32,6 +32,7 @@ import com.electric.chargingpile.util.ScreenUtils;
32 32
import com.electric.chargingpile.util.ToastUtil;
33 33
import com.electric.chargingpile.view.SortTopicPopWindow;
34 34
import com.squareup.picasso.Picasso;
35
import com.umeng.analytics.MobclickAgent;
35 36
import com.zhy.http.okhttp.OkHttpUtils;
36 37
import com.zhy.http.okhttp.callback.StringCallback;
37 38
@ -145,18 +146,21 @@ public class TopicDetailAdapter extends RecyclerView.Adapter<IViewHolder> {
145 146
                    public void onClick(View v) {
146 147
                        switch (v.getId()) {
147 148
                            case R.id.tv_1:
149
                                MobclickAgent.onEvent(context, "1045");
148 150
                                sort = 1;
149 151
                                sortPopWindow.dismiss();
150 152
                                headerViewHolder.sortTextView.setText("最新发布");
151 153
                                headerViewHolder.chooseTopicSort(sort);
152 154
                                break;
153 155
                            case R.id.tv_2:
156
                                MobclickAgent.onEvent(context, "1046");
154 157
                                sort = 2;
155 158
                                sortPopWindow.dismiss();
156 159
                                headerViewHolder.sortTextView.setText("最后回复");
157 160
                                headerViewHolder.chooseTopicSort(sort);
158 161
                                break;
159 162
                            case R.id.tv_3:
163
                                MobclickAgent.onEvent(context, "1047");
160 164
                                sort = 3;
161 165
                                sortPopWindow.dismiss();
162 166
                                headerViewHolder.sortTextView.setText("最热");

+ 29 - 0
app/src/main/java/com/electric/chargingpile/fragment/ChatContentCommentListDialogFragment.java

@ -35,6 +35,7 @@ import com.electric.chargingpile.util.CommonParams;
35 35
import com.electric.chargingpile.util.JsonUtils;
36 36
import com.electric.chargingpile.util.ToastUtil;
37 37
import com.squareup.picasso.Picasso;
38
import com.umeng.analytics.MobclickAgent;
38 39
import com.wang.avi.AVLoadingIndicatorView;
39 40
import com.zhy.http.okhttp.OkHttpUtils;
40 41
import com.zhy.http.okhttp.callback.StringCallback;
@ -195,6 +196,11 @@ public class ChatContentCommentListDialogFragment extends DialogFragment impleme
195 196
                }
196 197
                break;
197 198
            case R.id.allCommentsClose:
199
                if (ChatRecommendBean.TARGET_TYPE_VIDEO == chatRecommendBean.targetType) {
200
                    MobclickAgent.onEvent(getContext(), "1085 ");
201
                } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == chatRecommendBean.targetType) {
202
                    MobclickAgent.onEvent(getContext(), "1064 ");
203
                }
198 204
                dialog.dismiss();
199 205
                break;
200 206
        }
@ -207,6 +213,12 @@ public class ChatContentCommentListDialogFragment extends DialogFragment impleme
207 213
            return;
208 214
        }
209 215
216
        if (ChatRecommendBean.TARGET_TYPE_VIDEO == chatRecommendBean.targetType) {
217
            MobclickAgent.onEvent(getContext(), "1083 ");
218
        } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == chatRecommendBean.targetType) {
219
            MobclickAgent.onEvent(getContext(), "1062 ");
220
        }
221
210 222
        String url = MainApplication.urlNew + "/topic/comments/publish.do";
211 223
        final Map<String, String> map = new HashMap<>();
212 224
        map.put("targetId", chatRecommendBean.targetId + "");
@ -474,6 +486,11 @@ public class ChatContentCommentListDialogFragment extends DialogFragment impleme
474 486
         * 点赞操作
475 487
         */
476 488
        private void doLike() {
489
            if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
490
                MobclickAgent.onEvent(getContext(), "1081 ");
491
            } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
492
                MobclickAgent.onEvent(getContext(), "1060 ");
493
            }
477 494
            String url = MainApplication.urlNew + "/topic/like.do";
478 495
            Map<String, String> map = new HashMap<>();
479 496
            map.put("targetId", bean.id + "");
@ -510,6 +527,12 @@ public class ChatContentCommentListDialogFragment extends DialogFragment impleme
510 527
                return;
511 528
            }
512 529
530
            if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
531
                MobclickAgent.onEvent(getContext(), "1084 ");
532
            } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
533
                MobclickAgent.onEvent(getContext(), "1063 ");
534
            }
535
513 536
            String url = MainApplication.urlNew + "/topic/del.do";
514 537
            final Map<String, String> map = new HashMap<>();
515 538
            map.put("targetId", bean.id + "");
@ -553,6 +576,12 @@ public class ChatContentCommentListDialogFragment extends DialogFragment impleme
553 576
                return;
554 577
            }
555 578
579
            if (ChatRecommendBean.TARGET_TYPE_VIDEO == bean.targetType) {
580
                MobclickAgent.onEvent(getContext(), "1082 ");
581
            } else if (ChatRecommendBean.TARGET_TYPE_IMAGE_TEXT == bean.targetType) {
582
                MobclickAgent.onEvent(getContext(), "1061 ");
583
            }
584
556 585
            String url = MainApplication.urlNew + "/topic/comments/publish.do";
557 586
            final Map<String, String> map = new HashMap<>();
558 587
            map.put("targetId", chatRecommendBean.targetId + "");

+ 0 - 32
app/src/main/java/com/electric/chargingpile/fragment/ChatRecommendFragment.java

@ -133,43 +133,11 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
133 133
                ChatBeanLab beanLab = ChatBeanLab.get(getContext());
134 134
                ChatRecommendBean b = beanLab.beans().get(position - 1);
135 135
                int index = beanLab.index(b);
136
137 136
                Intent intent =  new Intent(getActivity(), ChatContentListActivity.class);
138 137
                intent.putExtra("from", ChatContentListActivity.FROM_CHAT_HOME);
139 138
                intent.putExtra("index", index);
140 139
                getActivity().startActivityForResult(intent, ChatContentListActivity.REQUEST_CODE_CHAT_HOME);
141 140
142
                if (true) return;
143
144
145
                final List<ChatRecommendBean> beans = ChatBeanLab.get(getContext()).beans();
146
                ChatRecommendBean bean = beans.get(position - 1);
147
                Disposable disposable = Observable.fromIterable(beans).filter(new Predicate<ChatRecommendBean>() {
148
                    @Override
149
                    public boolean test(ChatRecommendBean chatRecommendBean) throws Exception {
150
                        return chatRecommendBean.targetType != 25;
151
                    }
152
                }).toList().subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(new Consumer<List<ChatRecommendBean>>() {
153
                    @Override
154
                    public void accept(List<ChatRecommendBean> list) throws Exception {
155
                        ChatRecommendBean chatRecommendBean = beans.get(position - 1);
156
157
                        int index = 0;
158
                        for (int i = 0; i < list.size(); i++) {
159
                            ChatRecommendBean tmp = list.get(i);
160
                            if (tmp.targetType == chatRecommendBean.targetType &&
161
                                    tmp.targetId == chatRecommendBean.targetId) {
162
                                index = i;
163
                                break;
164
                            }
165
                        }
166
167
                        Intent intent = new Intent(getActivity(), VideoDetaislActivity.class);
168
                        intent.putExtra("list", (Serializable) list);
169
                        intent.putExtra("pos", index);
170
                        startActivity(intent);
171
                    }
172
                });
173 141
            }
174 142
        });
175 143