Form on Error Animation - Android android.animation

Android examples for android.animation:Animation

Description

Form on Error Animation

Demo Code


//package com.java2s;
import android.view.View;

public class Main {
    public static void onError(final View view) {
        view.animate().alpha(0).withEndAction(new Runnable() {
            @Override//from  www.j a  v  a 2s .  c o m
            public void run() {
                view.animate().alpha(1);
            }
        });
    }
}

Related Tutorials