mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Further refinement of all apps / widgets transition
Change-Id: Id107a9aff74f014c07f8cbea6e74951a02dbddab
This commit is contained in:
@@ -22,6 +22,7 @@ import android.animation.ObjectAnimator;
|
||||
import android.animation.PropertyValuesHolder;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.view.View;
|
||||
import android.view.ViewAnimationUtils;
|
||||
import android.view.ViewTreeObserver;
|
||||
|
||||
import java.util.HashSet;
|
||||
@@ -126,4 +127,14 @@ public class LauncherAnimUtils {
|
||||
new FirstFrameAnimatorHelper(anim, view);
|
||||
return anim;
|
||||
}
|
||||
|
||||
public static Animator createCircularReveal(View view, int centerX,
|
||||
int centerY, float startRadius, float endRadius) {
|
||||
Animator anim = ViewAnimationUtils.createCircularReveal(view, centerX,
|
||||
centerY, startRadius, endRadius);
|
||||
if (anim instanceof ValueAnimator) {
|
||||
new FirstFrameAnimatorHelper((ValueAnimator) anim, view);
|
||||
}
|
||||
return anim;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user