Browse Source

[MY][Common] 버킷리스트 수정화면 진입 구현

Hasemi 7 years ago
parent
commit
1c53ea750f

+ 2 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/Event.java

@@ -92,6 +92,7 @@ public class Event {
   public static final int COUPON_MALL = 64;
   public static final int CATEGORY_CLICK = 65;
   public static final int MY_FAQ = 66;
+  public static final int UPDATE = 67;
 
   @Retention(RetentionPolicy.SOURCE)
   @IntDef({
@@ -102,7 +103,7 @@ public class Event {
     ACTION_BAR_HOME, ACTION_BAR_NOTIFICATION, ACTION_BAR_SETTING, ACTION_BAR_CLOSE, ACTION_BAR_BACK,
     ACTION_BAR_SEARCH, ACTION_BAR_MENU, ACTION_BAR_TITLE, FIRST_CATEGORY, SECOND_CATEGORY, THIRD_CATEGORY, FOURTH_CATEGORY, FIFTH_CATEGORY,
     SWITCH, BOOK_MARK_DEFAULT, BOOK_MARK_LIST, ADD, MY_COIN_MAIN, MY_PURCHASE_HISTORY, GUIDE, ADD_BUCKET, MY_MAIN_GUEST, COUPON_MALL, CATEGORY_CLICK,
-    MY_FAQ,
+    MY_FAQ, UPDATE,
   })
   public @interface ID {}
 

+ 2 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/my/bucketlist/BucketListDetailFragment.java

@@ -14,6 +14,7 @@ import kr.co.zumo.app.R;
 import kr.co.zumo.app.lifeplus.manager.ActionBarManager;
 import kr.co.zumo.app.lifeplus.model.BlankModel;
 import kr.co.zumo.app.lifeplus.util.ResourceUtil;
+import kr.co.zumo.app.lifeplus.view.Event;
 import kr.co.zumo.app.lifeplus.view.screen.FragmentBase;
 
 /**
@@ -52,7 +53,7 @@ public class BucketListDetailFragment extends FragmentBase<BucketListDetailPrese
       }
     });
     recyclerviewBucketListDetail.setAdapter(adapter);
-
+    findViewById(R.id.layout_bucket_detail_header).setOnClickListener(view -> presenter.onEvent(new Event.Builder(Event.UPDATE).build()));
   }
 
   @Override

+ 7 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/my/bucketlist/BucketListDetailPresenter.java

@@ -56,7 +56,13 @@ public class BucketListDetailPresenter extends Presenter<BlankModel, IView> {
 
   @Override
   protected void onEventInternal(Event event) {
-
+    switch (event.getEventId()) {
+      case Event.UPDATE:
+        onCommand(new FragmentBackStackChangeCommand(ScreenID.ADD_MY_BUCKET, ScreenID.DIRECTION_NEXT));
+        break;
+      default:
+        break;
+    }
   }
 
   @Override

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

@@ -0,0 +1,10 @@
+<vector android:height="19dp" android:viewportHeight="76"
+    android:viewportWidth="76" android:width="19dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M61,21v48H15V21M31,32v26M45,32v26M26,20V8h24v12"
+        android:strokeColor="#FFF" android:strokeLineCap="round"
+        android:strokeLineJoin="round" android:strokeWidth="4"/>
+    <path android:fillColor="#00000000" android:fillType="evenOdd"
+        android:pathData="M9,20h58" android:strokeColor="#FFF"
+        android:strokeLineCap="round" android:strokeWidth="4"/>
+</vector>

File diff suppressed because it is too large
+ 4 - 0
app/src/main/res/drawable/icon_bucket_update_complete.xml


+ 31 - 0
app/src/main/res/layout/fragment_add_my_bucket_list.xml

@@ -35,6 +35,37 @@
     app:layout_constraintTop_toTopOf="parent"
     app:layout_constraintVertical_chainStyle="packed"/>
 
+  <ImageView
+    android:id="@+id/image_view_bucket_confirm"
+    android:scaleType="center"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    app:layout_constraintEnd_toStartOf="@+id/image_view_bucket_delete"
+    app:layout_constraintTop_toTopOf="@+id/image_view_bucket_delete"
+    app:layout_constraintBottom_toBottomOf="@+id/image_view_bucket_delete"
+    android:paddingTop="10dp"
+    android:paddingBottom="10dp"
+    android:paddingStart="10dp"
+    android:paddingEnd="8dp"
+    app:srcCompat="@drawable/icon_bucket_update_complete"
+    />
+
+
+  <ImageView
+    android:id="@+id/image_view_bucket_delete"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintTop_toTopOf="parent"
+    android:layout_marginEnd="6dp"
+    android:layout_marginTop="7dp"
+    android:paddingTop="10dp"
+    android:paddingBottom="10dp"
+    android:paddingStart="8dp"
+    android:paddingEnd="10dp"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:scaleType="center"
+    app:srcCompat="@drawable/icon_bucket_delete"
+    />
   <Button
     android:id="@+id/button_add_my_bucket"
     style="@style/WhiteButton"

+ 2 - 2
app/src/main/res/layout/fragment_bucket_list_detail.xml

@@ -8,7 +8,7 @@
   android:orientation="vertical">
 
   <android.support.constraint.ConstraintLayout
-    android:id="@+id/relativeLayout2"
+    android:id="@+id/layout_bucket_detail_header"
     android:layout_width="0dp"
     android:layout_height="0dp"
     android:background="@drawable/img_bestbucket_banner_5"
@@ -57,5 +57,5 @@
     android:layout_height="0dp"
     android:paddingTop="25dp"
     app:layout_constraintBottom_toBottomOf="parent"
-    app:layout_constraintTop_toBottomOf="@+id/relativeLayout2"/>
+    app:layout_constraintTop_toBottomOf="@+id/layout_bucket_detail_header"/>
 </android.support.constraint.ConstraintLayout>