History log of /frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a500f61a8bdf48904f380f2d4925fe420d18ce7 25-Aug-2016 Aurimas Liutikas <aurimas@google.com> Remove all the extra accessor methods added by javac in support-recyclerview.

Change private methods to be package protected to avoid extra methods
that get added to be able to access them from inner classes.

This CL saves 119 methods in our jar.

Bug: 31075707
Change-Id: I1c3147a196ae70ef14080a955d4399e01a997b1a
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
dc8e099ed130434c0238f558277c5bcb6a533121 23-May-2016 Aurimas Liutikas <aurimas@google.com> Add missing @Override annotations in v7 code. Part 1.

Change-Id: I8487ae3980cf84aa486edb086f676a14a82f22c6
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
abea494886a17e7a51080ab5e9c2ca041c533353 09-Dec-2015 Yigit Boyar <yboyar@google.com> Pass list of payloads to Animator#canReUse

This CL adds the payloads as a parameter to the canReUse API.
Turns out it was desired so that custom ItemAnimators can select
between specific animation or the default behavior of cross-fading.

To be consistent with adapter API, the previous method is not
deprecated.

Bug: 25904129
Change-Id: I97c69aef15268bf0960f8ca7ffff773a4a977192
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
e09e0b4ea04b6b6b0ef6c62979e8abdead0bf378 30-Sep-2015 Yigit Boyar <yboyar@google.com> Cleanup for item tracking

This CL abstracts the Item tracking for RecyclerView. This makes
it much easier to test (better encapsulation) + cleaner code.
And as an added bonus, I merged some maps to speedup lookups.

There is also a small (unreleased) API change for the new
ItemAnimation callbacks. It was wrong in the first one but didn't
realize because SimpleItemAnimator was taking care of it.

I've also added some support annotations & fixed some warnings.

Bug: 24665726
Change-Id: Idba09e749f1c0f269d81dbdee4056f6b52ba8484
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
121ba9616e5bed44d2490f1744f7b6a9d3e79866 30-Aug-2015 Yigit Boyar <yboyar@google.com> RecyclerView Animation API V2

This CL introduces a new Animation for RecyclerView that
gives more responsibility and power to the ItemAnimator.

It is backward incompatible but there is a new SimpleItemAnimator
that mimics the old API for easy transition.

The main goal for this API change is to enable better change
animations. This change will enable ItemAnimator to easily animate
contents of ViewHolders.

Bug: 22507896
Change-Id: I4d9a6b92ff5c27691b277a777da77116476b1cd3
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
d03a495b04ee74c1cb493cee0d5998b895b1c79b 16-May-2015 Vladislav Kaznacheev <kaznacheev@google.com> Reset Interpolator in DefaultItemAnimator

Bug:20633714
Change-Id: Iab5268fcea4d51475c8f865493bce8f851a9f75e
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
4d21e073e1aa2eb08777c288d08a92c419faa1e9 24-Feb-2015 Yigit Boyar <yboyar@google.com> Gingerbread Item Animator bugfix

DefaultItemAnimator was adding view holder to the list
of remove animations after it starts the animation.

This was creating a bug because on Gingerbread, calling start
instantly calls end, which is responsible to remove the view
holder. Since view holder is added after start, it was being
added after "end" is called as well, causing a leak. Also,
as a side effect, ItemAnimator was always thinking that it has
a running animation.

Change-Id: I80fecec93ff87f704383e4a26ba595b5c8edf1da
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
9457c0c167cca5aafe971fb2eb75f4a43c07ec05 01-Nov-2014 Yigit Boyar <yboyar@google.com> Fix default item animator to end animations properly

This change also adds more test cases to avoid similar issues.

Bug: 18182313
Change-Id: I7b6e965ad0f70033d0e685d41238d9225372d143
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
90ca3086dbf66ad6bb8840e46ec8524a705e1c18 03-Oct-2014 Yigit Boyar <yboyar@google.com> Fix RV's onViewAttached/detached callbacks

This change also fixes a bug in DefaultItemAnimator.

Bug: 17599182
Bug: 17881182
Change-Id: I4adadeb5d2d7d5aaef0f253eac52d2624de73d5e
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
549bbdfca3cffe64fd3ef69723a54037df326689 10-Sep-2014 Chet Haase <chet@google.com> Account for change duration in RecyclerView add animation delay

Issue #17455520 DefaultItemAnimator add animation start delay should depend on changesPending

Change-Id: I2ba81373797da88647fabe2ef7a6602687a59ec0
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
07715e8dcfa3e9fcd6c3e7727f61ca41b50e5763 02-Sep-2014 Dake Gu <dake@google.com> Recyclerview: fix overflow stack in animation

Remove view property listener before dispatch events.

b/17333832

Change-Id: I2452564bae5fc676cf9b70f96a484904d1dd0ccd
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
047e1151b1ce6965f5578eac83ee1ac3cf524ba7 13-Aug-2014 Yigit Boyar <yboyar@google.com> Check all pending animation groups in DefaultItemAnimator#isRunning

I also added a test case class for DefaultItemAnimator

Bug: 16958409
Change-Id: Id410890d146afeb953e934358e9c2ba12c14bc07
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
0e0bfdb790fd9477e3531a1db92c3377057f83b7 05-Aug-2014 Chet Haase <chet@google.com> Use unique lists to hold new animations spawned

Previously all new move/change/add animations would be placed on a global
list to avoid starting. That meant that a later request for unrelated animations
would populate the same lists and would thus potentially start at the wrong
time (coincident with the original animations instead of with the new
animation requirements).

This change changes the list instances to be lists-of-lists. When animation runnables
are first created, new lists are created and populated and then these new lists are
added to the list-of-list instances. Then the later runnables will act only on the
unique list associated with the proper animation event. Meanwhile, there is still global
access to all animations in case any of the animations need to get canceled.

Issue #16550053 DefaultItemAnimator should run unique animation lists

Change-Id: I87206da608eb4205405d9b99879c38d018ad6feb
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
e321eb5c831282c92a28a483692d8520b766a0a5 04-Aug-2014 Chet Haase <chet@google.com> Add methods to ItemAnimator for listening to animation events

Subclasses of itemAnimator can now override new on*Starting() and on*Finished()
methods to find out when animations are starting on specific ViewHolder
objects.

Issue #16399347 Add to ItemAnimator onAddFinished, onRemoveFinished, and onMoveFinished

Change-Id: Id9b47e3f743d5cb53f261a4db58cfdf4ed911005
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
a29fe6d4967a704799dc83d35ba80e426e9512cf 24-Jul-2014 Yigit Boyar <yboyar@google.com> Add support for parellel move and change animations

If an item moves during a change animations, now it is also animated to the new location.

We still dont support moving a changed item while it has a shadow. Right now, changed item
jumps to final state while shadow is still fading out.

Change-Id: Id73becbc6832b921a8b11c4999f3da0435e26680
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
e3d27c97eb0769997cd9d73baabffff70551efe0 18-Jul-2014 Yigit Boyar <yboyar@google.com> Invalidate RecyclerView during animations

Bug: 16241985
Change-Id: Icac7f6d035095f2937a2628fa59af056ba6aa478
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
504c54ea52c1b2aae6f8f4ae128f1dcaac7e3f6a 13-Jul-2014 Yigit Boyar <yboyar@google.com> Support animations during multiple layout calls

This CL also fixes two bugs related to view recycling
* we were moving views to cached view list w/o checking if they are recycleable or not
* AdapterHelper had a bug where it was checking missing views via < -1 instead of == -1

Change-Id: I7d70c1b884c3af046ba78924c9a966f83cda99f0
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
235114f0ea0ae165e74a478f39bfc586392c53aa 09-Jul-2014 Chet Haase <chet@google.com> Add RecyclerView animations for change actions

Issue #15691746 RecyclerView item animations for changed/resizing item views

Change-Id: Iacfda5b2508b20c8de3ea5ec9547e0f4d527d05e
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
ec93520d243d3eb3c6cddeaea7908d1b869bf367 14-Jun-2014 Dake Gu <dake@google.com> RecyclerView: fix animation not ended properly

1. DefaultItemAnimator should also end animations of mAdditions
and mMoves list.

2. setItemAnimator() should end animations.

b/15622617

Change-Id: I97f8427b2f0c9182c8b5088d6720b71dd14faf4d
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
c35968d173f900d8024bdf38174e2225c9a7f311 28-May-2014 Chet Haase <chet@google.com> Enable simple automatic item animations for RecyclerView

RecyclerView now has automatic animations for add/remove operations requiring
no changes from LayoutManagers. This approach, which is enabled by RecyclerView
having a non-null ItemAnimator (the default behavior) and LayoutManager returning
false for supportsPredictiveItemAnimations() (the default behavior), enables
LayoutManagers to run normally, with only one layout pass and requiring no extra
logic to predict placement of appearing or disappearing items. Appearing
and disappearing items will simply be faded in/out, since the RecyclerView lacks
the knowledge or where to animate the views from/to.

Issue #15542012 Simplify RecyclerView animations

Change-Id: I6219210c9b0ca32535182c1d233076a355fe0671
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
93b78dd7cbfafbe669e124b38a8e3ccb38ad3079 07-Jun-2014 Dake Gu <dake@google.com> fix animation bug

b/15472737

Change-Id: Ibd1da9bc35aaff66eb90c3726f3b70bdd64e832d
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
d7d27e9ebe5c7325e67e1a8af265378bd2056cad 28-Feb-2014 Chet Haase <chet@google.com> Add animations to RecyclerView

This CL adds the basic plumbing for animating item changes in
RecyclerView. It also implements the bare essentials add/delete
animations. When the app specifies that items have been
added/removed (by calling the appropriate Adapter methods), the
RecyclerView will determine the appropriate fading and moving
animations to animate the items being added, removed, and moved
into new locations.

Change-Id: I4fa8686f54c8bfa2ba29c399eea112d33f71689c
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
b1bfdf4c03d1b25959c5818805b997020f7ed085 15-May-2014 Chet Haase <chet@google.com> Revert "Add animations to RecyclerView"

This reverts commit 33b18903168c177d65e3c2ef7398c1b2ca0c826f.

Change-Id: I41664a375f9fc5fa878481b90cd2e61aad17f739
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java
33b18903168c177d65e3c2ef7398c1b2ca0c826f 28-Feb-2014 Chet Haase <chet@google.com> Add animations to RecyclerView

This CL adds the basic plumbing for animating item changes in
RecyclerView. It also implements the bare essentials add/delete
animations. When the app specifies that items have been
added/removed (by calling the appropriate Adapter methods), the
RecyclerView will determine the appropriate fading and moving
animations to animate the items being added, removed, and moved
into new locations.

Change-Id: If70c09e7af168ce5963c785b5886a18c87a7dc98
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/DefaultItemAnimator.java