Przeglądaj źródła

[공통][Common] 불필요 파일 및 메서드 제거

Hasemi 6 lat temu
rodzic
commit
7e0706aebc

+ 0 - 64
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/BucketListCheckBox.java

@@ -1,64 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom;
-
-import android.content.Context;
-import android.util.AttributeSet;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.widget.ImageView;
-
-import kr.co.zumo.app.R;
-
-/**
- * BookmarkSuccessCheckbox
- * <pre>
- * </pre>
- *
- * @author 하세미
- * @version 1.0
- * @history 하세미   [2019-01-22]   [최초 작성]
- * @since 2019-01-22
- */
-public class BucketListCheckBox extends AbstractCheckbox {
-
-  private ImageView checkbox;
-
-  public BucketListCheckBox(Context context) {
-    super(context);
-  }
-
-  public BucketListCheckBox(Context context, AttributeSet attrs) {
-    super(context, attrs);
-  }
-
-  @Override
-  protected void init(Context context) {
-    if (null != context) {
-      inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
-      View view = inflater.inflate(R.layout.checkbox_bucket, this);
-      checkImage = view.findViewById(R.id.icon_bucket);
-    }
-  }
-
-  @Override
-  protected void setChecked(boolean isChecked, boolean isAnim) {
-    this.isChecked = isChecked;
-
-    if (isChecked) {
-      if (isAnim) {
-        BucketListCheckAnimation bucketListCheckAnimation = new BucketListCheckAnimation();
-        bucketListCheckAnimation.show(checkImage);
-      }
-      else {
-        checkImage.setImageResource(R.drawable.ic_icon_bucket_complet_on);
-      }
-    }
-    else {
-      checkImage.setImageResource(R.drawable.ic_icon_bucket_complet_default);
-    }
-
-  }
-
-}

+ 15 - 17
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/my/bucketlist/MyBucketListAdapter.java

@@ -6,8 +6,6 @@ import android.support.v7.widget.RecyclerView;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
-import android.view.animation.Animation;
-import android.view.animation.AnimationUtils;
 
 import java.util.List;
 
@@ -49,7 +47,7 @@ public class MyBucketListAdapter extends RecyclerView.Adapter<MyBucketListViewHo
   public void onBindViewHolder(@NonNull MyBucketListViewHolder holder, int position) {
     BucketWithTagBean bean = myBucketListBeanList.get(position);
     holder.bind(bean);
-    setAnimation(holder.itemView, position);
+   // setAnimation(holder.itemView, position);
   }
 
   @Override
@@ -62,18 +60,18 @@ public class MyBucketListAdapter extends RecyclerView.Adapter<MyBucketListViewHo
     notifyDataSetChanged();
   }
 
-  private void setAnimation(View viewToAnimate, int position) {
-
-    if (position > lastPosition) {
-
-      Animation animation = AnimationUtils.loadAnimation(context, android.R.anim.slide_in_left);
-      viewToAnimate.startAnimation(animation);
-      lastPosition = position;
-    }
-  }
-
-  @Override
-  public void onViewDetachedFromWindow(@NonNull MyBucketListViewHolder holder) {
-    holder.clearAnimation();
-  }
+//  private void setAnimation(View viewToAnimate, int position) {
+//
+//    if (position > lastPosition) {
+//
+//      Animation animation = AnimationUtils.loadAnimation(context, android.R.anim.slide_in_left);
+//      viewToAnimate.startAnimation(animation);
+//      lastPosition = position;
+//    }
+//  }
+//
+//  @Override
+//  public void onViewDetachedFromWindow(@NonNull MyBucketListViewHolder holder) {
+//    holder.clearAnimation();
+//  }
 }