use of com.mikepenz.itemanimators.SlideRightAlphaAnimator in project Slide by ccrama.
the class CommentAdapter method editComment.
public void editComment(CommentNode n, CommentViewHolder holder) {
if (n == null) {
dataSet.loadMoreReply(this);
} else {
int position = getRealPosition(holder.getBindingAdapterPosition() - 1);
final int holderpos = holder.getBindingAdapterPosition();
currentComments.remove(position - 1);
currentComments.add(position - 1, new CommentItem(n));
listView.setItemAnimator(new SlideRightAlphaAnimator());
((Activity) mContext).runOnUiThread(new Runnable() {
@Override
public void run() {
notifyItemChanged(holderpos);
}
});
}
}
Aggregations