gabrielemariotti / recyclerviewitemanimators Goto Github PK
View Code? Open in Web Editor NEWAn Android library which provides simple Item animations to RecyclerView items
An Android library which provides simple Item animations to RecyclerView items
First of all, great work!
SwingBottomInAnimationAdapter has missing configuration, it should be generic as other adapters.
So now we have:
public class SwingBottomInAnimationAdapter extends AnimatorAdapter {
public SwingBottomInAnimationAdapter(RecyclerView.Adapter<RecyclerView.ViewHolder> adapter, RecyclerView recyclerView) {
super(adapter, recyclerView);
}
...
}
and should be :
public class SwingBottomInAnimationAdapter<T extends RecyclerView.ViewHolder> extends AnimatorAdapter<T> {
public SwingBottomInAnimationAdapter(RecyclerView.Adapter<T> adapter, RecyclerView recyclerView) {
super(adapter, recyclerView);
}
...
The SwingBottomInAnimationAdapter should be typed just as the other subclasses of AnimatorAdapter:
public class SwingBottomInAnimationAdapter<T extends RecyclerView.ViewHolder> extends AnimatorAdapter<T> {
...
}
ExnpandableTextView
doesn't maintain expanded state changes between orientation/config changes.
How to reproduce:
android:configChanges
from manifest of current Demo.ExpandableTextView loses its expanded state.
With using ItemAnimators, whether we should use viewholder.getPosition in place of position on the onBindViewHolder()
I know it supports 23.1.1, but I want to know what to do to support 23.2.1, maybe you can help me
ItemAnimator works great when clicking Add and Remove buttons in sample project.
But can It be done on items which are initially loaded as in this project for listView and gridView. ?
Are there any plans to update this now that RecyclerView has been released? Currently you're still requiring min sdk L.
This project also has been noticed by the community, and is currently the #1 search result on Google for RecyclerView ItemAnimator.
One more thing, as things are currently, this project doesn't need to be an Android Library, but could just be converted to a jar.
While building this library, did you ever encounter calling setItemAnimator and passing in a a class that extends ItemAnimator does nothing? None of the callbacks in the ItemAnimator class are being triggered. Any tips would be much appreciated.
Hi,
Do you plan to implement swipe to remove animations similar to ListViewAnimator?
Let the
public abstract class BaseItemAnimator extends SimpleItemAnimator
instead of
public abstract class BaseItemAnimator extends RecyclerView.ItemAnimator
private void resetAnimation(RecyclerView.ViewHolder holder) {
// TODO: 2019-08-23 missing file
// AnimatorCompatHelper.clearInterpolator(holder.itemView);
endAnimation(holder);
}
Lost the file ‘AnimatorCompatHelper’, I removed this line and the test works fine.
hello, i want to start Alpha aniamtion from right to left. how can i do to this?
Hi, I´m trying to use your lib on Android Studio 3.0.1 with Recyclerview-v7:27.0.1 and I away get "Fail to resolve" on implementation 'com.github.gabrielemariotti.recyclerview:recyclerview-animators:0.3.0-SNAPSHOT@aar'
A´m I doing something wrong or your lib must be updated?
Thank you.
Line #270 and #271 of ViewAnimation.java:
int lastVisiblePosition = ((LinearLayoutManager)mRecyclerView.getLayoutManager()).findLastCompletelyVisibleItemPosition();
It tries to cast my layout manager to a linear layout, which is not the case, since I'm using StaggeredGridLayoutManager.
Am I missing something or the lib does not support the use of another type of Layout Manager?
Could not resolve com.github.gabrielemariotti.recyclerview:recyclerview-animators:0.3.0-SNAPSHOT.
Required by:
project :app
> Could not resolve com.github.gabrielemariotti.recyclerview:recyclerview-animators:0.3.0-SNAPSHOT.
> Unable to load Maven meta-data from http://jitpack.io/com/github/gabrielemariotti/recyclerview/recyclerview-animators/0.3.0-SNAPSHOT/maven-metadata.xml.
> Could not get resource 'http://jitpack.io/com/github/gabrielemariotti/recyclerview/recyclerview-animators/0.3.0-SNAPSHOT/maven-metadata.xml'.
> Could not GET 'https://jitpack.io/com/github/gabrielemariotti/recyclerview/recyclerview-animators/0.3.0-SNAPSHOT/maven-metadata.xml'.
> Read timed out
My project's minSdkVersion is 15 but in your library its L, isn't your lib compatible with older sdks?
I'm getting
Error:Execution failed for task ':doximity:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be different than version L declared in library /Users/kayvan/Documents/sources/Android-dox-as/doximity/build/intermediates/exploded-aar/com.github.gabrielemariotti.recyclerview/recyclerview-animators/0.1.0-SNAPSHOT/AndroidManifest.xml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.