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 java.util.List;

public class Main {

    public static boolean start(List<Animator> animators) {
        boolean isStartCalled = false;
        if (animators != null) {
            for (Animator animator : animators) {
                if (start(animator)) {
                    isStartCalled = true;
                }
            }
        }
        return isStartCalled;
    }

    public static boolean start(Animator animator) {
        if (animator != null && animator.isStarted() == false) {
            animator.setupStartValues();
            animator.start();
            return true;
        }
        return false;
    }
}