| | |
| | | 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.entity.Follow; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity2; |
| | | import com.weikou.beibeivideo.util.GlideCircleTransform; |
| | | import com.weikou.beibeivideo.util.TimeUtil; |
| | | import com.yeshi.buwanshequ.R; |
| | | import com.weikou.beibeivideo.R; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | final Attention info = (Attention) getItem(position); |
| | | info.setAttention(true); |
| | | try { |
| | | Glide.with(mContext).load(info.getVideoInfo().getPicture()).placeholder(R.drawable.ic_default).error(R.drawable.ic_default).centerCrop().into(holder.iv_moive_img); |
| | | Glide.with(mContext).load(info.getVideoInfo().getPicture()) |
| | | .apply(new RequestOptions().centerCrop().placeholder(R.drawable.ic_default).error(R.drawable.ic_default)) |
| | | .into(holder.iv_moive_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"); |