| | |
| | | import android.widget.TextView; |
| | | |
| | | import com.bumptech.glide.Glide; |
| | | import com.bumptech.glide.request.RequestOptions; |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.weikou.beibeivideo.entity.Attention; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity2; |
| | | import com.weikou.beibeivideo.util.GlideCircleTransform; |
| | | import com.yeshi.buwanshequ.R; |
| | | import com.weikou.beibeivideo.R; |
| | | |
| | | import java.text.DecimalFormat; |
| | | import java.util.List; |
| | |
| | | |
| | | try { |
| | | Glide.with(mContext).load(info.getVideoInfo().getPicture() + "") |
| | | .placeholder(R.drawable.img_head_portrait) |
| | | .error(R.drawable.img_head_portrait) |
| | | .centerCrop() |
| | | .transform(new GlideCircleTransform(mContext)) |
| | | .apply(new RequestOptions().centerCrop().placeholder(R.drawable.img_head_portrait).error(R.drawable.img_head_portrait).transform(new GlideCircleTransform(mContext))) |
| | | .into(holder.iv_movie_img); |
| | | Glide.with(mContext).load(info.getVideoInfo().getVideoDetailList().get(0).getPicture() == null ? info.getVideoInfo().getPicture() : info.getVideoInfo().getVideoDetailList().get(0).getPicture() + "").centerCrop().into(holder.iv_moive_detail_img); |
| | | Glide.with(mContext).load(info.getVideoInfo().getVideoDetailList().get(0).getPicture() == null ? info.getVideoInfo().getPicture() : info.getVideoInfo().getVideoDetailList().get(0).getPicture() + "").apply(new RequestOptions().centerCrop()).into(holder.iv_moive_detail_img); |
| | | } catch (IllegalArgumentException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | convertView.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | Intent intent = new Intent(v.getContext(), VideoDetailActivity.class); |
| | | Intent intent = new Intent(v.getContext(), VideoDetailActivity2.class); |
| | | intent.putExtra("Id", info.getVideoInfo().getId()); |
| | | intent.putExtra("Share", "0"); |
| | | intent.putExtra("ThirdType", "0"); |