[(∩`-´)⊃━☆゚.*・。゚] Payment methods recycler animations #377
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
what
-Leveraged the new
ListAdapter
class that handles list changes more responsibly 😛-When a user adds or deletes a card, we now get these awesome animations for free.
Shoutout to @CDRussell for a great blog post about it: https://medium.com/@trionkidnapper/recyclerview-more-animations-with-less-code-using-support-library-listadapter-62e65126acdb
how
-I didn't want to change
KSAdapter
because 16 classes extend it and that's not what this feature is about. Maybe for an Investment Day™, I could refactor all of them.-So! I made a new class called
KSListAdapter
that extendsListAdapter
. It still can handle sections and uses our existingKSViewHolder
pattern ٩( ᐛ )وlook how cute