|
@ -56,7 +56,7 @@ public class SvVideoShowView implements View.OnClickListener {
|
56
|
56
|
sv_show_comment_ll;
|
57
|
57
|
private TextView sv_show_comment_count_tv, sv_show_like_tv, sv_show_tvcon,
|
58
|
58
|
sv_show_user_name, sv_show_user_time, sv_show_topic_con, vd_title_tv;
|
59
|
|
private ImageView sv_show_like_img, sv_show_user_avatar;
|
|
59
|
private ImageView sv_show_like_img, sv_show_user_avatar,playIcon;
|
60
|
60
|
|
61
|
61
|
private View sv_show_tvcon_more;
|
62
|
62
|
|
|
@ -137,8 +137,9 @@ public class SvVideoShowView implements View.OnClickListener {
|
137
|
137
|
sv_show_comment_count_tv.setText(talkRecommendBean.commentNums + "");
|
138
|
138
|
sv_show_like_tv.setText(talkRecommendBean.likeNums + "");
|
139
|
139
|
sv_show_tvcon.setText(talkRecommendBean.content);
|
|
140
|
sv_show_tvcon.setText(talkRecommendBean.title);
|
140
|
141
|
sv_show_user_name.setText(talkRecommendBean.nickName);
|
141
|
|
String time = TimeUtil.getTimeFormatText(talkRecommendBean.addTime);
|
|
142
|
String time = ""+talkRecommendBean.addTime;
|
142
|
143
|
sv_show_user_time.setText(time);
|
143
|
144
|
sv_show_topic_con.setText(talkRecommendBean.topicName);
|
144
|
145
|
|
|
@ -151,7 +152,7 @@ public class SvVideoShowView implements View.OnClickListener {
|
151
|
152
|
.into(sv_show_user_avatar);
|
152
|
153
|
} else {
|
153
|
154
|
Picasso.with(activity)
|
154
|
|
.load("http://cdz.evcharge.cc/zhannew/uploadfile/"+talkRecommendBean.headImgUrl)
|
|
155
|
.load("http://cdz.evcharge.cc/zhannew/uploadfile/" + talkRecommendBean.headImgUrl)
|
155
|
156
|
.placeholder(R.drawable.icon_face2_0)
|
156
|
157
|
.error(R.drawable.icon_face2_0)
|
157
|
158
|
.transform(new CircleTransform())
|
|
@ -165,7 +166,7 @@ public class SvVideoShowView implements View.OnClickListener {
|
165
|
166
|
// sv_show_like_img not like
|
166
|
167
|
}
|
167
|
168
|
|
168
|
|
if (sv_show_tvcon.getLineCount() >= 3) {
|
|
169
|
if (sv_show_tvcon.getLineCount() > 3) {
|
169
|
170
|
sv_show_tvcon_more.setVisibility(View.VISIBLE);
|
170
|
171
|
} else {
|
171
|
172
|
sv_show_tvcon_more.setVisibility(View.GONE);
|
|
@ -246,7 +247,21 @@ public class SvVideoShowView implements View.OnClickListener {
|
246
|
247
|
}
|
247
|
248
|
|
248
|
249
|
private void initPlayer(View view) {
|
|
250
|
playIcon = view.findViewById(R.id.view_show_icon);
|
249
|
251
|
upVideoView2 = view.findViewById(R.id.view_show_video);
|
|
252
|
upVideoView2.setOnClickListener(new View.OnClickListener() {
|
|
253
|
@Override
|
|
254
|
public void onClick(View view) {
|
|
255
|
boolean playing = upVideoView2.isPlaying();
|
|
256
|
if (playing) {
|
|
257
|
upVideoView2.pause();
|
|
258
|
playIcon.setVisibility(View.VISIBLE);
|
|
259
|
} else {
|
|
260
|
playIcon.setVisibility(View.GONE);
|
|
261
|
upVideoView2.start();
|
|
262
|
}
|
|
263
|
}
|
|
264
|
});
|
250
|
265
|
}
|
251
|
266
|
|
252
|
267
|
ZoomingViewpager zoomingViewpager;
|