perform Scale X Animation With Custom Time - Android Animation

Android examples for Animation:Scale Animation

Description

perform Scale X 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 performScaleXWithCustomTime(int i, View view,
            Context context) {/*from w  ww  .jav a2 s  .  c o  m*/
        Animation animation = AnimationUtils.loadAnimation(context,
                0x7f04000d);
        animation.setDuration(i);
        view.startAnimation(animation);
    }
}

Related Tutorials