admin
2021-02-03 1981dee5aec45793d3c4ebdbc4e637528c71b3c5
BuWanVideo/src/com/weikou/beibeivideo/ui/common/FollowAdapter2.java
@@ -10,13 +10,15 @@
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;
@@ -70,7 +72,9 @@
        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();
        }
@@ -98,7 +102,7 @@
        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");