Pārlūkot izejas kodu

[메인][Common] more info 데이터 분기

Hasemi 7 gadi atpakaļ
vecāks
revīzija
8d3bec0847

+ 7 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/dialog/MoreInfoDialog.java

@@ -28,6 +28,9 @@ import kr.co.zumo.app.lifeplus.view.custom.contents.CustomMoreInfoView;
  */
 public class MoreInfoDialog extends DialogBase<ICustomDialogListener<MoreInfoDialog>> {
 
+  private static final String PERIOD_INFO = "02"; //기간
+  private static final String ORARNIZATION_INFO = "03";//편성
+  private static final String GUEST_INFO = "06"; //출연진
   private static final String TIME_INFO = "07";
   private static final String MENU_DETAIL_INFO = "08";
   private static final String PHONE_INFO = "09";
@@ -50,12 +53,15 @@ public class MoreInfoDialog extends DialogBase<ICustomDialogListener<MoreInfoDia
     window.setBackgroundDrawableResource(R.color.C99000000);
     getDialog().getWindow().getAttributes().windowAnimations = R.style.DialogMoreInfoAnimation;
     layoutMoreInfoContainer = getView().findViewById(R.id.layout_more_info_container);
- 
+
     for (int i = 0; i < contentsMoreInfoBeanList.size(); i++) {
       CustomMoreInfoView customMoreInfoView = null;
 
       ContentsMoreInfoBean contentsMoreInfoBean = contentsMoreInfoBeanList.get(i);
       switch (contentsMoreInfoBean.getDetailType()) {
+        case PERIOD_INFO:
+          customMoreInfoView = new CustomMoreInfoView(getActivity(), R.drawable.icon_info_date, contentsMoreInfoBean.getMoreInfo());
+          break;
         case TIME_INFO:
           customMoreInfoView = new CustomMoreInfoView(getActivity(), R.drawable.icon_info_time, contentsMoreInfoBean.getMoreInfo());
           break;

+ 4 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/contents/ContentsDetailListicleDetailViewHolder.java

@@ -1,6 +1,7 @@
 package kr.co.zumo.app.lifeplus.view.screen.contents;
 
 import android.support.constraint.ConstraintLayout;
+import android.util.Log;
 import android.view.View;
 import android.widget.LinearLayout;
 
@@ -61,6 +62,9 @@ public class ContentsDetailListicleDetailViewHolder extends ContentsDetailView<C
     layoutMoreInfoPopup.setOnClickListener(view -> {
       listener.onEvent(new Event.Builder(Event.MORE).index(getAdapterPosition()).build());
     });
+    for (int i = 0; i < bean.getMoreInfoList().size(); i++) {
+      Log.e("APP#  ContentsDetailListicleDetailViewHolder | attach", "|" + bean.getMoreInfoList().get(i).getDetailType() + "," + bean.getMoreInfoList().get(i).getMoreInfo());
+    }
 
   }
 

+ 5 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/contents/ContentsDetailPresenter.java

@@ -288,14 +288,19 @@ public class ContentsDetailPresenter extends ContentsBasePresenter<ContentsDetai
             case Event.CALL_INFO:
               break;
             case Event.LINK:
+              showErrorDialog(R.string.ready_comment);
               break;
             case Event.HOME_PAGE:
+              showErrorDialog(R.string.ready_comment);
               break;
             case Event.INSTAGRAM:
+              showErrorDialog(R.string.ready_comment);
               break;
             case Event.FACE_BOOK:
+              showErrorDialog(R.string.ready_comment);
               break;
             case Event.ADDRESS:
+              showErrorDialog(R.string.ready_comment);
               break;
             default:
               break;

+ 10 - 0
app/src/main/res/drawable/icon_info_audience.xml

@@ -0,0 +1,10 @@
+<vector android:height="14dp" android:viewportHeight="54"
+    android:viewportWidth="54" android:width="14dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M27,27m-22.5,0a22.5,22.5 0,1 1,45 0a22.5,22.5 0,1 1,-45 0"
+        android:strokeColor="#C5C5C5" android:strokeWidth="3"/>
+    <path android:fillColor="#C5C5C5" android:fillType="nonZero" android:pathData="M44,21.5L44,21.5A1.5,1.5 0,0 1,45.5 23L45.5,32A1.5,1.5 0,0 1,44 33.5L44,33.5A1.5,1.5 0,0 1,42.5 32L42.5,23A1.5,1.5 0,0 1,44 21.5z"/>
+    <path android:fillColor="#C5C5C5" android:fillType="nonZero" android:pathData="M10,21.5L10,21.5A1.5,1.5 0,0 1,11.5 23L11.5,32A1.5,1.5 0,0 1,10 33.5L10,33.5A1.5,1.5 0,0 1,8.5 32L8.5,23A1.5,1.5 0,0 1,10 21.5z"/>
+    <path android:fillColor="#C5C5C5" android:fillType="nonZero" android:pathData="M27.5,3L27.5,3A1.5,1.5 0,0 1,29 4.5L29,13.5A1.5,1.5 0,0 1,27.5 15L27.5,15A1.5,1.5 0,0 1,26 13.5L26,4.5A1.5,1.5 0,0 1,27.5 3z"/>
+    <path android:fillColor="#C5C5C5" android:fillType="nonZero" android:pathData="M27.5,39L27.5,39A1.5,1.5 0,0 1,29 40.5L29,49.5A1.5,1.5 0,0 1,27.5 51L27.5,51A1.5,1.5 0,0 1,26 49.5L26,40.5A1.5,1.5 0,0 1,27.5 39z"/>
+</vector>

+ 6 - 0
app/src/main/res/drawable/icon_info_cast.xml

@@ -0,0 +1,6 @@
+<vector android:height="14dp" android:viewportHeight="54"
+    android:viewportWidth="54" android:width="14dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M6.087,49h42.825C47.928,37.84 38.797,29 28,29 16.384,29 7.078,37.721 6.087,49zM28,26c4.523,0 9,-4.477 9,-9 0,-6.243 -4.24,-11 -9,-11 -6.523,0 -11,4.477 -11,11 0,4.76 4.757,9 11,9z"
+        android:strokeColor="#C5C5C5" android:strokeWidth="4"/>
+</vector>

+ 14 - 0
app/src/main/res/drawable/icon_info_date.xml

@@ -0,0 +1,14 @@
+<vector android:height="14dp" android:viewportHeight="54"
+    android:viewportWidth="54" android:width="14dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M9,10L45,10A3,3 0,0 1,48 13L48,45A3,3 0,0 1,45 48L9,48A3,3 0,0 1,6 45L6,13A3,3 0,0 1,9 10z"
+        android:strokeColor="#C5C5C5" android:strokeWidth="4"/>
+    <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M5.5,21h43" android:strokeColor="#C5C5C5" android:strokeWidth="4"/>
+    <path android:fillColor="#C5C5C5" android:fillType="evenOdd" android:pathData="M16.5,33.5m-2.5,0a2.5,2.5 0,1 1,5 0a2.5,2.5 0,1 1,-5 0"/>
+    <path android:fillColor="#C5C5C5" android:fillType="evenOdd" android:pathData="M27.5,33.5m-2.5,0a2.5,2.5 0,1 1,5 0a2.5,2.5 0,1 1,-5 0"/>
+    <path android:fillColor="#C5C5C5" android:fillType="evenOdd" android:pathData="M38.5,33.5m-2.5,0a2.5,2.5 0,1 1,5 0a2.5,2.5 0,1 1,-5 0"/>
+    <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M16.25,7v5M37.25,7v5"
+        android:strokeColor="#C5C5C5" android:strokeLineCap="round" android:strokeWidth="4"/>
+</vector>

+ 6 - 0
app/src/main/res/drawable/icon_info_price.xml

@@ -0,0 +1,6 @@
+<vector android:height="14dp" android:viewportHeight="54"
+    android:viewportWidth="54" android:width="14dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#C5C5C5" android:fillType="evenOdd" android:pathData="M5,11h4l10,33h-4zM25,11h4l10,33h-4z"/>
+    <path android:fillColor="#C5C5C5" android:fillType="evenOdd" android:pathData="M29,11h-4L15,44h4zM49,11h-4L35,44h4z"/>
+    <path android:fillColor="#C5C5C5" android:fillType="evenOdd" android:pathData="M5,23h44v4H5z"/>
+</vector>

+ 1 - 1
app/src/main/res/layout/contents_card_listicle_detail.xml

@@ -6,7 +6,7 @@
   android:layout_width="match_parent"
   android:layout_height="match_parent">
 
-  <kr.co.zumo.app.lifeplus.view.custom.contents.CustomCardListicleImageView
+  <ImageView
     android:id="@+id/custom_card_listicle_image_view"
     android:layout_width="match_parent"
     android:layout_height="match_parent"