Lines Matching refs:ViewHolder

23 import android.support.v7.widget.RecyclerView.ViewHolder;
60 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)} implementation.
67 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int,
79 * @return True if change animations are not supported or the ViewHolder is invalid,
85 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) {
90 public boolean animateDisappearance(@NonNull ViewHolder viewHolder,
114 public boolean animateAppearance(@NonNull ViewHolder viewHolder,
133 public boolean animatePersistence(@NonNull ViewHolder viewHolder,
148 public boolean animateChange(@NonNull ViewHolder oldHolder, @NonNull ViewHolder newHolder,
169 * {@link #dispatchRemoveFinished(ViewHolder)} when done, either
174 * as separate calls to {@link #animateAdd(ViewHolder) animateAdd()},
175 * {@link #animateMove(ViewHolder, int, int, int, int) animateMove()},
176 * {@link #animateRemove(ViewHolder) animateRemove()}, and
177 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)} come in one by one,
189 public abstract boolean animateRemove(ViewHolder holder);
194 * {@link #dispatchAddFinished(ViewHolder)} when done, either
199 * as separate calls to {@link #animateAdd(ViewHolder) animateAdd()},
200 * {@link #animateMove(ViewHolder, int, int, int, int) animateMove()},
201 * {@link #animateRemove(ViewHolder) animateRemove()}, and
202 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)} come in one by one,
214 public abstract boolean animateAdd(ViewHolder holder);
219 * {@link #dispatchMoveFinished(ViewHolder)} when done, either
224 * as separate calls to {@link #animateAdd(ViewHolder) animateAdd()},
225 * {@link #animateMove(ViewHolder, int, int, int, int) animateMove()},
226 * {@link #animateRemove(ViewHolder) animateRemove()}, and
227 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)} come in one by one,
234 public abstract boolean animateMove(ViewHolder holder, int fromX, int fromY,
243 * {@link #dispatchChangeFinished(ViewHolder, boolean)} for each non-null distinct ViewHolder,
245 * If the {@code oldHolder} is the same ViewHolder as the {@code newHolder}, you must call
246 * {@link #dispatchChangeFinished(ViewHolder, boolean)} once and only once. In that case, the
252 * as separate calls to {@link #animateAdd(ViewHolder) animateAdd()},
253 * {@link #animateMove(ViewHolder, int, int, int, int) animateMove()},
254 * {@link #animateRemove(ViewHolder) animateRemove()}, and
255 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)} come in one by one,
267 public abstract boolean animateChange(ViewHolder oldHolder,
268 ViewHolder newHolder, int fromLeft, int fromTop, int toLeft, int toTop);
274 * @see RecyclerView.ItemAnimator#animateDisappearance(ViewHolder, ItemHolderInfo,
277 public final void dispatchRemoveFinished(ViewHolder item) {
286 * @see RecyclerView.ItemAnimator#animateDisappearance(ViewHolder, ItemHolderInfo,
288 * @see RecyclerView.ItemAnimator#animatePersistence(ViewHolder, ItemHolderInfo, ItemHolderInfo)
289 * @see RecyclerView.ItemAnimator#animateAppearance(ViewHolder, ItemHolderInfo, ItemHolderInfo)
291 public final void dispatchMoveFinished(ViewHolder item) {
301 public final void dispatchAddFinished(ViewHolder item) {
310 * each non-null ViewHolder passed into
311 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)}).
314 * @see #animateChange(ViewHolder, ViewHolder, int, int, int, int)
316 public final void dispatchChangeFinished(ViewHolder item, boolean oldItem) {
326 public final void dispatchRemoveStarting(ViewHolder item) {
335 public final void dispatchMoveStarting(ViewHolder item) {
344 public final void dispatchAddStarting(ViewHolder item) {
352 * each non-null ViewHolder passed into
353 * {@link #animateChange(ViewHolder, ViewHolder, int, int, int, int)}).
357 public final void dispatchChangeStarting(ViewHolder item, boolean oldItem) {
362 * Called when a remove animation is being started on the given ViewHolder.
364 * this method to handle any ViewHolder-specific operations linked to animation
367 * @param item The ViewHolder being animated.
370 public void onRemoveStarting(ViewHolder item) {
374 * Called when a remove animation has ended on the given ViewHolder.
376 * this method to handle any ViewHolder-specific operations linked to animation
379 * @param item The ViewHolder being animated.
381 public void onRemoveFinished(ViewHolder item) {
385 * Called when an add animation is being started on the given ViewHolder.
387 * this method to handle any ViewHolder-specific operations linked to animation
390 * @param item The ViewHolder being animated.
393 public void onAddStarting(ViewHolder item) {
397 * Called when an add animation has ended on the given ViewHolder.
399 * this method to handle any ViewHolder-specific operations linked to animation
402 * @param item The ViewHolder being animated.
404 public void onAddFinished(ViewHolder item) {
408 * Called when a move animation is being started on the given ViewHolder.
410 * this method to handle any ViewHolder-specific operations linked to animation
413 * @param item The ViewHolder being animated.
416 public void onMoveStarting(ViewHolder item) {
420 * Called when a move animation has ended on the given ViewHolder.
422 * this method to handle any ViewHolder-specific operations linked to animation
425 * @param item The ViewHolder being animated.
427 public void onMoveFinished(ViewHolder item) {
431 * Called when a change animation is being started on the given ViewHolder.
433 * this method to handle any ViewHolder-specific operations linked to animation
436 * @param item The ViewHolder being animated.
441 public void onChangeStarting(ViewHolder item, boolean oldItem) {
445 * Called when a change animation has ended on the given ViewHolder.
447 * this method to handle any ViewHolder-specific operations linked to animation
450 * @param item The ViewHolder being animated.
454 public void onChangeFinished(ViewHolder item, boolean oldItem) {