Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;

public class Main {
    public static void hideView(View view) {
        hideRadioSlowy(view, 0);
    }

    public static void hideRadioSlowy(View view, long mi) {
        Animation animation = new TranslateAnimation(0, 0, 0, 100);
        animation.setDuration(mi);
        animation.setFillAfter(true);
        view.startAnimation(animation);
    }
}