|
|
@@ -41,6 +41,7 @@ public class RecommendContentsViewHolder extends RecyclerView.ViewHolder {
|
|
|
private TextView textViewTitle;
|
|
|
private TextView textViewTag1; //함께 보면 좋은 콘텐츠 태그 기반일때
|
|
|
private TextView textViewTag2; //함께 보면 좋은 콘텐츠 태그 기반일때
|
|
|
+ private TextView textViewTag3; //함께 보면 좋은 콘텐츠 태그 기반일때
|
|
|
private ImageView imageViewBackground;
|
|
|
private View dim;
|
|
|
|
|
|
@@ -50,6 +51,7 @@ public class RecommendContentsViewHolder extends RecyclerView.ViewHolder {
|
|
|
textViewTitle = itemView.findViewById(R.id.text_view_title);
|
|
|
textViewTag1 = itemView.findViewById(R.id.text_view_tag1);
|
|
|
textViewTag2 = itemView.findViewById(R.id.text_view_tag2);
|
|
|
+ textViewTag3 = itemView.findViewById(R.id.text_view_tag3);
|
|
|
imageViewBackground = itemView.findViewById(R.id.image_view_background);
|
|
|
dim = itemView.findViewById(R.id.view_dim);
|
|
|
Visibler.invisible(dim);
|
|
|
@@ -62,7 +64,21 @@ public class RecommendContentsViewHolder extends RecyclerView.ViewHolder {
|
|
|
List<TagBean> tagBeans = bean.getTagList();
|
|
|
if (null != tagBeans) {
|
|
|
TagBean tagBean;
|
|
|
- if (tagBeans.size() > 1) {
|
|
|
+ if (tagBeans.size() > 2) {
|
|
|
+ tagBean = tagBeans.get(2);
|
|
|
+ if (null != tagBean) {
|
|
|
+ textViewTag3.setText(StringUtil.toTag(tagBean.getTagName()));
|
|
|
+ }
|
|
|
+ tagBean = tagBeans.get(1);
|
|
|
+ if (null != tagBean) {
|
|
|
+ textViewTag2.setText(StringUtil.toTag(tagBean.getTagName()));
|
|
|
+ }
|
|
|
+ tagBean = tagBeans.get(0);
|
|
|
+ if (null != tagBean) {
|
|
|
+ textViewTag1.setText(StringUtil.toTag(tagBean.getTagName()));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (tagBeans.size() > 1) {
|
|
|
tagBean = tagBeans.get(1);
|
|
|
if (null != tagBean) {
|
|
|
textViewTag2.setText(StringUtil.toTag(tagBean.getTagName()));
|
|
|
@@ -71,6 +87,7 @@ public class RecommendContentsViewHolder extends RecyclerView.ViewHolder {
|
|
|
if (null != tagBean) {
|
|
|
textViewTag1.setText(StringUtil.toTag(tagBean.getTagName()));
|
|
|
}
|
|
|
+ textViewTag3.setText("");
|
|
|
}
|
|
|
else if (tagBeans.size() > 0) {
|
|
|
tagBean = tagBeans.get(0);
|
|
|
@@ -87,6 +104,7 @@ public class RecommendContentsViewHolder extends RecyclerView.ViewHolder {
|
|
|
else {
|
|
|
textViewTag1.setText("");
|
|
|
textViewTag2.setText("");
|
|
|
+ textViewTag3.setText("");
|
|
|
}
|
|
|
|
|
|
imageViewBackground.setScaleType(ImageView.ScaleType.CENTER);
|