Explorar el Código

[콘텐츠상세][Common] 이미지 워터마크 임시 데이터 추가, 리스티클 커버 태그사이 간격 조정

Hasemi hace 7 años
padre
commit
e878c9ec49

+ 8 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/contents/CustomListicleImageViewHolder.java

@@ -38,12 +38,19 @@ public class CustomListicleImageViewHolder extends RecyclerView.ViewHolder {
     this.bean = bean;
     this.listener = listener;
     imageViewBackground = itemView.findViewById(R.id.image_view_background);
+    textViewCopyRight = itemView.findViewById(R.id.text_view_copy_right);
     Glide.with(imageViewBackground)
       .asBitmap().load(bean.getImageUrl()).into(imageViewBackground);
+
+
     // TODO: copyright 처리
-    if(null !=bean.getCopyRight()){
+    if (null != bean.getCopyRight()) {
       textViewCopyRight.setText(bean.getCopyRight());
     }
+    else {
+      textViewCopyRight.setText(R.string.copy_right);
+    }
+
   }
 
   public void attach() {

+ 7 - 3
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/contents/ContentsListicleCoverHolder.java

@@ -77,15 +77,19 @@ public class ContentsListicleCoverHolder extends ContentsHolder<ContentsDetailBe
     int len = bean.getTagList().size();
     len = Math.min(len, 2);
     for (int i = 0; i < len; i++) {
-      stringBuilder.append(String.format("#%s", bean.getTagList().get(i).getTagName()));
+      stringBuilder.append(String.format("#%s", bean.getTagList().get(i).getTagName())).append("      ");
     }
 
-    textViewTag1.setText(stringBuilder.toString() + "  ");
+    textViewTag1.setText(stringBuilder.toString());
 
     // TODO: copyright 처리
-    if(null != bean.getCopyRight()){
+    if (null != bean.getCopyRight()) {
       textViewCopyRight.setText(bean.getCopyRight());
     }
+    else {
+      textViewCopyRight.setText(R.string.copy_right);
+    }
+
     imageViewArrow.setOnClickListener(view -> {listener.onEvent(new Event.Builder(Event.SCROLL).build());});
   }
 

+ 1 - 0
app/src/main/res/values/strings.xml

@@ -25,6 +25,7 @@
   <string name="facebook_app_id">1010954478934932</string>  <!-- zumo -->
 
   <string name="more_info">more info</string>
+  <string name="copy_right">copyright</string>
 
   <string name="empty_string" translatable="false"/>
   <string name="confirm">확인</string>