androidx.core.view.ViewPropertyAnimatorListener Java Examples
The following examples show how to use
androidx.core.view.ViewPropertyAnimatorListener.
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: AnimatorUtil.java From NewFastFrame with Apache License 2.0 | 5 votes |
public static void scaleShow(View view, ViewPropertyAnimatorListener viewPropertyAnimatorListener) { view.setVisibility(View.VISIBLE); ViewCompat.animate(view) .scaleX(1.0f) .scaleY(1.0f) .alpha(1.0f) .setDuration(800) .setListener(viewPropertyAnimatorListener) .setInterpolator(FAST_OUT_SLOW_IN_INTERPOLATOR) .start(); }
Example #2
Source File: AnimatorUtil.java From NewFastFrame with Apache License 2.0 | 5 votes |
public static void scaleHide(View view, ViewPropertyAnimatorListener viewPropertyAnimatorListener) { ViewCompat.animate(view) .scaleX(0.0f) .scaleY(0.0f) .alpha(0.0f) .setDuration(800) .setInterpolator(FAST_OUT_SLOW_IN_INTERPOLATOR) .setListener(viewPropertyAnimatorListener) .start(); }
Example #3
Source File: ScrollableFooterItem.java From FlexibleAdapter with Apache License 2.0 | 5 votes |
@Override public boolean animateAddImpl(ViewPropertyAnimatorListener listener, long addDuration, int index) { ViewCompat.animate(itemView) .translationY(0) .alpha(1) .setDuration(addDuration) .setInterpolator(new DecelerateInterpolator()) .setListener(listener) .start(); return true; }
Example #4
Source File: AnimatorSubItem.java From FlexibleAdapter with Apache License 2.0 | 5 votes |
@Override public boolean animateAddImpl(ViewPropertyAnimatorListener listener, long addDuration, int index) { if (DatabaseConfiguration.subItemSpecificAnimation) { ViewCompat.animate(itemView) .rotationX(0) .setDuration(addDuration) .setInterpolator(new DecelerateInterpolator()) .setListener(listener) .setStartDelay(index * 150L) .start(); return true; } return false; }
Example #5
Source File: AnimatorSubItem.java From FlexibleAdapter with Apache License 2.0 | 5 votes |
@Override public boolean animateRemoveImpl(ViewPropertyAnimatorListener listener, long removeDuration, int index) { if (DatabaseConfiguration.subItemSpecificAnimation) { ViewCompat.animate(itemView) .rotationX(90) .setDuration(removeDuration) .setInterpolator(new DecelerateInterpolator()) .setListener(listener) .setStartDelay(index * 40L) .start(); return true; } return false; }
Example #6
Source File: ScrollableFooterItem.java From FlexibleAdapter with Apache License 2.0 | 4 votes |
@Override public boolean animateRemoveImpl(ViewPropertyAnimatorListener listener, long removeDuration, int index) { return false; }
Example #7
Source File: AnimateViewHolder.java From recyclerview-animators with Apache License 2.0 | 4 votes |
void animateRemoveImpl(final RecyclerView.ViewHolder holder, ViewPropertyAnimatorListener listener);
Example #8
Source File: AnimatedViewHolder.java From FlexibleAdapter with Apache License 2.0 | 2 votes |
/** * Animates this ViewHolder with this specific Add Animation. * <p>By returning {@code true} this ViewHolder will perform customized animation, while by * returning {@code false} generic animation is applied also for this ViewHolder.</p> * * @param listener should assign to {@code ViewCompat.animate().setListener(listener)} * @param addDuration duration of add animation * @param index order of execution, starts with 0 * @return {@code true} to animate with this implementation, {@code false} to use the generic * animation. * @since 5.0.0-b8 */ boolean animateAddImpl(ViewPropertyAnimatorListener listener, long addDuration, int index);
Example #9
Source File: AnimatedViewHolder.java From FlexibleAdapter with Apache License 2.0 | 2 votes |
/** * Animates this ViewHolder with this specific Remove Animation. * <p>By returning {@code true} this ViewHolder will perform customized animation, while by * returning {@code false} generic animation is applied also for this ViewHolder.</p> * * @param listener should assign to {@code ViewCompat.animate().setListener(listener)} * @param removeDuration duration of remove animation * @param index order of execution, starts with 0 @return {@code true} to animate with this * implementation, {@code false} to use the generic animation. * @since 5.0.0-b8 */ boolean animateRemoveImpl(ViewPropertyAnimatorListener listener, long removeDuration, int index);
Example #10
Source File: AnimateViewHolder.java From recyclerview-animators with Apache License 2.0 | votes |
void animateAddImpl(final RecyclerView.ViewHolder holder, ViewPropertyAnimatorListener listener);