| | |
| | | import com.weikou.beibeivideo.entity.ad.ExpressAdContainer; |
| | | import com.weikou.beibeivideo.entity.video.VideoContent; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity2; |
| | | import com.weikou.beibeivideo.util.ad.ExpressAdManager; |
| | | |
| | | import java.util.List; |
| | |
| | | final VideoInfo info = videoContent.getVideo(); |
| | | final AlbumVideoHolder albumVideoHolder = (AlbumVideoHolder) holder; |
| | | try { |
| | | String pic=info.getVpicture(); |
| | | if(StringUtils.isBlank(pic)) |
| | | pic=info.getPicture(); |
| | | String pic = info.getVpicture(); |
| | | if (StringUtils.isBlank(pic)) |
| | | pic = info.getPicture(); |
| | | |
| | | Glide.with(mContext).load(pic).transition(withCrossFade()).placeholder(R.color.black).into(albumVideoHolder.iv_picture); |
| | | } catch (IllegalArgumentException e) { |
| | |
| | | @Override |
| | | public void onClick(View v) { |
| | | if (albumVideoHolder.tv_video_4.getVisibility() == View.VISIBLE) { |
| | | myClick(info, v, Integer.parseInt(videoDetailInfos.get(3).getTag())); |
| | | myClick(info, v, Integer.parseInt(videoDetailInfos.get(3).getTag())); |
| | | } |
| | | } |
| | | }); |
| | |
| | | @Override |
| | | public void onClick(View v) { |
| | | if (albumVideoHolder.tv_video_5.getVisibility() == View.VISIBLE) { |
| | | myClick(info, v, Integer.parseInt(videoDetailInfos.get(4).getTag())); |
| | | myClick(info, v, Integer.parseInt(videoDetailInfos.get(4).getTag())); |
| | | } |
| | | } |
| | | }); |
| | |
| | | |
| | | |
| | | private void myClick(VideoInfo info, final View v, int p) { |
| | | Intent intent = new Intent(v.getContext(), VideoDetailActivity.class); |
| | | Intent intent = new Intent(v.getContext(), VideoDetailActivity2.class); |
| | | intent.putExtra("video_info", info); |
| | | if (p > 0) |
| | | intent.putExtra("playing_position", p); |