| | |
| | | |
| | | import com.weikou.beibeivideo.entity.VideoDetailInfo; |
| | | import com.weikou.beibeivideo.entity.VideoInfo; |
| | | import com.weikou.beibeivideo.util.DimenUtils; |
| | | import com.yeshi.buwanshequ.R; |
| | | |
| | | public class EpisodeNewAdapter extends RecyclerView.Adapter { |
| | |
| | | |
| | | private void setDisplaySize(TextView tv) { |
| | | if (displayType == TYPE_DIANSHIJU || displayType == TYPE_DONGMAN) { |
| | | tv.setMinWidth(52); |
| | | tv.setMinWidth(DimenUtils.dip2px(mContext, 52)); |
| | | } else { |
| | | tv.setMaxLines(3); |
| | | tv.setLines(3); |
| | | tv.setEllipsize(TextUtils.TruncateAt.END); |
| | | tv.setMinWidth(180); |
| | | tv.setMinWidth(DimenUtils.dip2px(mContext, 180)); |
| | | tv.setGravity(Gravity.START); |
| | | } |
| | | } |
| | |
| | | viewHolder.tv_episode.setTextColor(Color.parseColor("#232323")); |
| | | } |
| | | |
| | | if (videoInfo.getShowType() == 1) { |
| | | if (videoInfo.getIntroduction() == null) { |
| | | videoInfo.setIntroduction(""); |
| | | } |
| | | viewHolder.tv_episode.setText(TextUtils.isEmpty(videoInfo |
| | | .getTag()) ? "" |
| | | : (videoInfo.getTag() + videoInfo |
| | | .getIntroduction())); |
| | | } else { |
| | | viewHolder.tv_episode.setText(info.getTag()); |
| | | } |
| | | |
| | | viewHolder.tv_episode.setText(info.getTag()); |
| | | } |
| | | |
| | | @Override |