Kaynağa Gözat

[마이][Common] 버킷리스트 없는 경우 페이지 플로팅 액션버튼 수정 및 프리젠터, 모델, 인터페이스 생성

Hasemi 7 yıl önce
ebeveyn
işleme
7e2158ae64

+ 39 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/model/BucketListModel.java

@@ -0,0 +1,39 @@
+package kr.co.zumo.app.lifeplus.model;
+
+/**
+ * BucketListModel
+ * <pre>
+ * </pre>
+ *
+ * @author 하세미
+ * @version 1.0
+ * @history 하세미   [2018-10-18]   [최초 작성]
+ * @since 2018-10-18
+ */
+public class BucketListModel extends  Model {
+
+  @Override
+  protected void destroyInternal() {
+
+  }
+
+  @Override
+  protected void startInternal() {
+
+  }
+
+  @Override
+  protected void stopInternal() {
+
+  }
+
+  @Override
+  protected void resumeInternal() {
+
+  }
+
+  @Override
+  protected void pauseInternal() {
+
+  }
+}

+ 15 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/IBucketListView.java

@@ -0,0 +1,15 @@
+package kr.co.zumo.app.lifeplus.view;
+
+/**
+ * IBucketListView
+ * <pre>
+ * </pre>
+ *
+ * @author 하세미
+ * @version 1.0
+ * @history 하세미   [2018-10-18]   [최초 작성]
+ * @since 2018-10-18
+ */
+public interface IBucketListView extends IView {
+
+}

+ 4 - 4
app/src/main/java/kr/co/zumo/app/lifeplus/view/fragment/bucketlist/BucketListFragment.java

@@ -12,9 +12,9 @@ import android.view.ViewGroup;
 
 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.model.BucketListModel;
 import kr.co.zumo.app.lifeplus.util.ResourceUtil;
-import kr.co.zumo.app.lifeplus.view.IView;
+import kr.co.zumo.app.lifeplus.view.IBucketListView;
 import kr.co.zumo.app.lifeplus.view.fragment.FragmentBase;
 import kr.co.zumo.app.lifeplus.view.presenter.BucketListPresenter;
 
@@ -28,7 +28,7 @@ import kr.co.zumo.app.lifeplus.view.presenter.BucketListPresenter;
  * @history 하세미   [2018-10-16]   [최초 작성]
  * @since 2018-10-16
  */
-public class BucketListFragment extends FragmentBase<BucketListPresenter> implements IView {
+public class BucketListFragment extends FragmentBase<BucketListPresenter> implements IBucketListView {
 
   private ViewPager viewPagerBucketList;
   private TabLayout tabLayoutBucketList;
@@ -63,7 +63,7 @@ public class BucketListFragment extends FragmentBase<BucketListPresenter> implem
 
   @Override
   protected BucketListPresenter definePresenter() {
-    return new BucketListPresenter(getModel(BlankModel.class), this);
+    return new BucketListPresenter(getModel(BucketListModel.class), this);
   }
 
 }

+ 6 - 4
app/src/main/java/kr/co/zumo/app/lifeplus/view/presenter/BucketListPresenter.java

@@ -1,9 +1,9 @@
 package kr.co.zumo.app.lifeplus.view.presenter;
 
-import kr.co.zumo.app.lifeplus.model.BlankModel;
+import kr.co.zumo.app.lifeplus.model.BucketListModel;
 import kr.co.zumo.app.lifeplus.supervisor.ScreenID;
 import kr.co.zumo.app.lifeplus.view.Event;
-import kr.co.zumo.app.lifeplus.view.IView;
+import kr.co.zumo.app.lifeplus.view.IBucketListView;
 import kr.co.zumo.app.lifeplus.view.command.FragmentChangeCommand;
 
 /**
@@ -16,9 +16,9 @@ import kr.co.zumo.app.lifeplus.view.command.FragmentChangeCommand;
  * @history 하세미   [2018-10-16]   [최초 작성]
  * @since 2018-10-16
  */
-public class BucketListPresenter extends Presenter<BlankModel, IView> {
+public class BucketListPresenter extends Presenter<BucketListModel, IBucketListView > {
 
-  public BucketListPresenter(BlankModel model, IView view) {
+  public BucketListPresenter(BucketListModel model, IBucketListView view) {
     super(model, view);
   }
 
@@ -63,4 +63,6 @@ public class BucketListPresenter extends Presenter<BlankModel, IView> {
 
   }
 
+
+
 }

+ 6 - 3
app/src/main/res/layout/fragment_bucket_list.xml

@@ -42,14 +42,17 @@
       android:layout_marginBottom="22dp"
       app:srcCompat="@drawable/ic_textballoon_shape"/>
 
-    <ImageView
+    <android.support.design.widget.FloatingActionButton
       android:id="@+id/image_view_floating_plus"
-      android:layout_width="wrap_content"
-      android:layout_height="wrap_content"
+      android:layout_width="44dp"
+      android:layout_height="44dp"
       android:layout_alignParentEnd="true"
       android:layout_alignParentBottom="true"
       android:layout_marginEnd="22dp"
       android:layout_marginBottom="22dp"
+      android:scaleType="center"
+      android:scaleX="-1"
+      app:backgroundTint="@android:color/transparent"
       app:srcCompat="@drawable/icon_floating_plus"/>
 
     <TextView