Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.animation.Animator;

import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;

import android.view.View;

public class Main {
    public static Animator animSlideOut(int i1, View view) {
        float af[] = new float[2];
        af[0] = 0.0F;
        af[1] = -i1;
        return ObjectAnimator.ofPropertyValuesHolder(view,
                new PropertyValuesHolder[] { PropertyValuesHolder.ofFloat("translationY", af),
                        PropertyValuesHolder.ofFloat("alpha", new float[] { 0.7F, 0.0F }) });
    }
}