enable View with animation - Android User Interface

Android examples for User Interface:View Enable

Description

enable View with animation

Demo Code


//package com.java2s;

import android.view.View;

import android.view.animation.AlphaAnimation;

public class Main {
    private static void enableView(View view) {
        AlphaAnimation alphaDown = new AlphaAnimation(1.0f, 1.0f);
        alphaDown.setDuration(0);//  w  ww.  j a va  2s  .  c om
        alphaDown.setFillAfter(true);
        view.startAnimation(alphaDown);
    }
}

Related Tutorials