Search in sources :

Example 61 with ViewPropertyAnimator

use of android.view.ViewPropertyAnimator in project Android-Material-Examples by saulmm.

the class GUIUtils method showViewByScale.

public static void showViewByScale(View view) {
    ViewPropertyAnimator propertyAnimator = view.animate().setStartDelay(SCALE_FACTOR).scaleX(1).scaleY(1);
    propertyAnimator.start();
}
Also used : ViewPropertyAnimator(android.view.ViewPropertyAnimator)

Example 62 with ViewPropertyAnimator

use of android.view.ViewPropertyAnimator in project vlayout by alibaba.

the class FixLayoutHelper method addFixViewWithAnimator.

private void addFixViewWithAnimator(LayoutManagerHelper layoutManagerHelper, View fixView) {
    if (mFixViewAnimatorHelper != null) {
        ViewPropertyAnimator animator = mFixViewAnimatorHelper.onGetFixViewAppearAnimator(fixView);
        if (animator != null) {
            fixView.setVisibility(View.INVISIBLE);
            layoutManagerHelper.addFixedView(fixView);
            mFixViewAppearAnimatorListener.bindAction(layoutManagerHelper, fixView);
            animator.setListener(mFixViewAppearAnimatorListener).start();
        } else {
            layoutManagerHelper.addFixedView(fixView);
        }
    } else {
        layoutManagerHelper.addFixedView(fixView);
    }
    isRemoveFixViewImmediately = false;
}
Also used : ViewPropertyAnimator(android.view.ViewPropertyAnimator)

Example 63 with ViewPropertyAnimator

use of android.view.ViewPropertyAnimator in project FlexibleAdapter by davideas.

the class EmptyViewHelper method showView.

private static void showView(View view) {
    if (view != null) {
        ViewPropertyAnimator animator = view.animate();
        animator.cancel();
        animator.alpha(1);
    }
}
Also used : ViewPropertyAnimator(android.view.ViewPropertyAnimator)

Aggregations

ViewPropertyAnimator (android.view.ViewPropertyAnimator)63 Animator (android.animation.Animator)31 AnimatorListenerAdapter (android.animation.AnimatorListenerAdapter)13 View (android.view.View)9 AnimatorListener (android.animation.Animator.AnimatorListener)7 ValueAnimator (android.animation.ValueAnimator)7 ObjectAnimator (android.animation.ObjectAnimator)4 SimpleItemAnimator (android.support.v7.widget.SimpleItemAnimator)4 ProgressCardView (org.wikipedia.feed.progress.ProgressCardView)4 ViewTreeObserver (android.view.ViewTreeObserver)3 AccelerateDecelerateInterpolator (android.view.animation.AccelerateDecelerateInterpolator)3 ImageView (android.widget.ImageView)3 Point (android.graphics.Point)2 AccelerateInterpolator (android.view.animation.AccelerateInterpolator)2 DecelerateInterpolator (android.view.animation.DecelerateInterpolator)2 AdapterView (android.widget.AdapterView)2 TextView (android.widget.TextView)2 TimeInterpolator (android.animation.TimeInterpolator)1 TargetApi (android.annotation.TargetApi)1 Resources (android.content.res.Resources)1