|
|
@@ -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();
|
|
|
+// }
|
|
|
}
|