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.AnimatorSet;

import java.util.Iterator;

public class Main {
    public static long getAnimDuration(AnimatorSet animatorset) {
        Iterator iterator = animatorset.getChildAnimations().iterator();
        long l1 = 0L;
        while (iterator.hasNext()) {
            Animator animator = (Animator) iterator.next();
            long l2 = animator.getStartDelay() + animator.getDuration();
            long l3;
            if (l2 > l1) {
                l3 = l2;
            } else {
                l3 = l1;
            }
            l1 = l3;
        }
        return l1;
    }
}