From f60eb9f127094356ebc3d1c0b5acb40d33b637ec Mon Sep 17 00:00:00 2001 From: chad <54050520@qq.com> Date: Tue, 26 Jul 2016 11:00:47 +0800 Subject: [PATCH] fix 161 --- .../java/com/chad/library/adapter/base/BaseQuickAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/com/chad/library/adapter/base/BaseQuickAdapter.java b/library/src/main/java/com/chad/library/adapter/base/BaseQuickAdapter.java index 2b02de2dc..53c928e72 100755 --- a/library/src/main/java/com/chad/library/adapter/base/BaseQuickAdapter.java +++ b/library/src/main/java/com/chad/library/adapter/base/BaseQuickAdapter.java @@ -270,6 +270,7 @@ public interface OnRecyclerViewItemChildLongClickListener { public class OnItemChildLongClickListener implements View.OnLongClickListener { public RecyclerView.ViewHolder mViewHolder; + @Override public boolean onLongClick(View v) { if (mChildLongClickListener != null) { @@ -574,6 +575,8 @@ public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) { int type = holder.getItemViewType(); if (type == EMPTY_VIEW || type == HEADER_VIEW || type == FOOTER_VIEW || type == LOADING_VIEW) { setFullSpan(holder); + } else { + addAnimation(holder); } } @@ -622,7 +625,6 @@ public void onBindViewHolder(final RecyclerView.ViewHolder holder, int positions switch (viewType) { case 0: convert((BaseViewHolder) holder, mData.get(holder.getLayoutPosition() - getHeaderLayoutCount())); - addAnimation(holder); break; case LOADING_VIEW: addLoadMore(holder);