Code example for Animator

Methods: start

0
	 
	public static void setupAnimation(View view, final Animator animation, final int animationID, Context context) {
		Animator anim = AnimatorInflater.loadAnimator(context, animationID);
        anim.setTarget(view);
        anim.start();
        animation.start();
    } 
 
    public static View.OnClickListener returnAnimatingClickListener(final AnimatedClickEvent animatedClickEvent) {
 
        View.OnClickListener attachmentListener = new View.OnClickListener() {
            @Override 
            public void onClick(final View view) {
 
                final Animator.AnimatorListener scaleUpAnimationListener = new Animator.AnimatorListener() {
                    @Override 
                    public void onAnimationStart(Animator animator) {}
 
                    @Override 
                    public void onAnimationEnd(Animator animator) {
                        animatedClickEvent.runIntent(view);