perform Scale Animation With Custom Time - Android Animation

Android examples for Animation:Scale Animation

Description

perform Scale Animation With Custom Time

Demo Code


//package com.java2s;
import android.content.Context;

import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

public class Main {
    public static void performScaleWithCustomTime(int i, View view,
            Context context) {/*from  www .jav a  2 s .  com*/
        Animation animation = AnimationUtils.loadAnimation(context,
                0x7f04000c);
        animation.setDuration(i);
        view.startAnimation(animation);
    }
}

Related Tutorials