| | |
| | | package com.ysvideo.zhibo.app.ui.video.adapter; |
| | | |
| | | import android.annotation.SuppressLint; |
| | | import android.content.Context; |
| | | import android.graphics.Color; |
| | | import android.text.TextUtils; |
| | |
| | | this.selectVideoEpisodeListener = selectVideoEpisodeListener; |
| | | } |
| | | |
| | | public void setPlayingPosition(int position){ |
| | | public void setPlayingPosition(int position) { |
| | | this.playingPosition = position; |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | |
| | | public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, final int position) { |
| | | public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, @SuppressLint("RecyclerView") int position) { |
| | | final VideoDetailInfo info = videoInfo.getVideoDetailList().get(position); |
| | | EpisodeViewHolder viewHolder = (EpisodeViewHolder) holder; |
| | | setDisplaySize(viewHolder.tv_episode); |
| | |
| | | viewHolder.tv_episode.setTextColor(Color.parseColor("#FFFFFF")); |
| | | } else { |
| | | viewHolder.tv_episode.setBackgroundResource(R.drawable.shape_video_detail_episode_unselected); |
| | | viewHolder.tv_episode.setTextColor(Color.parseColor("#232323")); |
| | | viewHolder.tv_episode.setTextColor(mContext.getResources().getColor(R.color.theme)); |
| | | } |
| | | |
| | | viewHolder.tv_episode.setText(info.getTag()); |