jp.wasabeef.recyclerview.animators.BaseItemAnimator Java Examples

The following examples show how to use jp.wasabeef.recyclerview.animators.BaseItemAnimator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ListFragment.java    From Pixiv-Shaft with MIT License 5 votes vote down vote up
public BaseItemAnimator animation() {
    //设置item动画
    BaseItemAnimator baseItemAnimator = new LandingAnimator();
    baseItemAnimator.setAddDuration(animateDuration);
    baseItemAnimator.setRemoveDuration(animateDuration);
    baseItemAnimator.setMoveDuration(animateDuration);
    baseItemAnimator.setChangeDuration(animateDuration);
    return baseItemAnimator;
}
 
Example #2
Source File: FragmentRecmdUserHorizontal.java    From Pixiv-Shaft with MIT License 5 votes vote down vote up
@Override
public BaseItemAnimator animation() {
    FadeInLeftAnimator fade = new FadeInLeftAnimator();
    fade.setAddDuration(animateDuration);
    fade.setRemoveDuration(animateDuration);
    fade.setMoveDuration(animateDuration);
    fade.setChangeDuration(animateDuration);
    return fade;
}
 
Example #3
Source File: FragmentPivisionHorizontal.java    From Pixiv-Shaft with MIT License 5 votes vote down vote up
@Override
public BaseItemAnimator animation() {
    FadeInLeftAnimator landingAnimator = new FadeInLeftAnimator();
    landingAnimator.setAddDuration(animateDuration);
    landingAnimator.setRemoveDuration(animateDuration);
    landingAnimator.setMoveDuration(animateDuration);
    landingAnimator.setChangeDuration(animateDuration);
    return landingAnimator;
}
 
Example #4
Source File: RecordsListFragment.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
Type(BaseItemAnimator animator) {
    mAnimator = animator;
}
 
Example #5
Source File: RecordsListFragment.java    From android-auto-call-recorder with MIT License 4 votes vote down vote up
public BaseItemAnimator getAnimator() {
    return mAnimator;
}