Java tutorial
package android.support.v4.view; import android.os.Build.VERSION; import android.view.View; import android.view.animation.Interpolator; import java.lang.ref.WeakReference; import java.util.WeakHashMap; public class ViewPropertyAnimatorCompat { static final ViewPropertyAnimatorCompatImpl IMPL; static final int LISTENER_TAG_ID = 2113929216; private static final String TAG = "ViewAnimatorCompat"; private Runnable mEndAction; private int mOldLayerType; private Runnable mStartAction; private WeakReference<View> mView; interface ViewPropertyAnimatorCompatImpl { void alpha(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void alphaBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void cancel(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view); long getDuration(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view); Interpolator getInterpolator(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view); long getStartDelay(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view); void rotation(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void rotationBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void rotationX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void rotationXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void rotationY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void rotationYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void scaleX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void scaleXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void scaleY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void scaleYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void setDuration(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, long j); void setInterpolator(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Interpolator interpolator); void setListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, ViewPropertyAnimatorListener viewPropertyAnimatorListener); void setStartDelay(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, long j); void setUpdateListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, ViewPropertyAnimatorUpdateListener viewPropertyAnimatorUpdateListener); void start(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view); void translationX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void translationXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void translationY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void translationYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void withEndAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable); void withLayer(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view); void withStartAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable); void m27x(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void xBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void m28y(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); void yBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f); } static class BaseViewPropertyAnimatorCompatImpl implements ViewPropertyAnimatorCompatImpl { WeakHashMap<View, Runnable> mStarterMap; class Starter implements Runnable { WeakReference<View> mViewRef; ViewPropertyAnimatorCompat mVpa; private Starter(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { this.mViewRef = new WeakReference(view); this.mVpa = viewPropertyAnimatorCompat; } public void run() { View view = (View) this.mViewRef.get(); if (view != null) { BaseViewPropertyAnimatorCompatImpl.this.startAnimation(this.mVpa, view); } } } BaseViewPropertyAnimatorCompatImpl() { this.mStarterMap = null; } public void setDuration(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, long j) { } public void alpha(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void translationX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void translationY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void withEndAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable) { viewPropertyAnimatorCompat.mEndAction = runnable; postStartMessage(viewPropertyAnimatorCompat, view); } public long getDuration(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { return 0; } public void setInterpolator(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Interpolator interpolator) { } public Interpolator getInterpolator(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { return null; } public void setStartDelay(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, long j) { } public long getStartDelay(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { return 0; } public void alphaBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void rotation(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void rotationBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void rotationX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void rotationXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void rotationY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void rotationYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void scaleX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void scaleXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void scaleY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void scaleYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void cancel(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { postStartMessage(viewPropertyAnimatorCompat, view); } public void m29x(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void xBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void m30y(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void yBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void translationXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void translationYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { postStartMessage(viewPropertyAnimatorCompat, view); } public void start(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { removeStartMessage(view); startAnimation(viewPropertyAnimatorCompat, view); } public void withLayer(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { } public void withStartAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable) { viewPropertyAnimatorCompat.mStartAction = runnable; postStartMessage(viewPropertyAnimatorCompat, view); } public void setListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, ViewPropertyAnimatorListener viewPropertyAnimatorListener) { view.setTag(ViewPropertyAnimatorCompat.LISTENER_TAG_ID, viewPropertyAnimatorListener); } public void setUpdateListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, ViewPropertyAnimatorUpdateListener viewPropertyAnimatorUpdateListener) { } private void startAnimation(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { ViewPropertyAnimatorListener viewPropertyAnimatorListener; Object tag = view.getTag(ViewPropertyAnimatorCompat.LISTENER_TAG_ID); if (tag instanceof ViewPropertyAnimatorListener) { viewPropertyAnimatorListener = (ViewPropertyAnimatorListener) tag; } else { viewPropertyAnimatorListener = null; } Runnable access$100 = viewPropertyAnimatorCompat.mStartAction; Runnable access$000 = viewPropertyAnimatorCompat.mEndAction; if (access$100 != null) { access$100.run(); } if (viewPropertyAnimatorListener != null) { viewPropertyAnimatorListener.onAnimationStart(view); viewPropertyAnimatorListener.onAnimationEnd(view); } if (access$000 != null) { access$000.run(); } if (this.mStarterMap != null) { this.mStarterMap.remove(view); } } private void removeStartMessage(View view) { if (this.mStarterMap != null) { Runnable runnable = (Runnable) this.mStarterMap.get(view); if (runnable != null) { view.removeCallbacks(runnable); } } } private void postStartMessage(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { Runnable runnable; if (this.mStarterMap != null) { runnable = (Runnable) this.mStarterMap.get(view); } else { runnable = null; } if (runnable == null) { runnable = new Starter(viewPropertyAnimatorCompat, view, null); if (this.mStarterMap == null) { this.mStarterMap = new WeakHashMap(); } this.mStarterMap.put(view, runnable); } view.removeCallbacks(runnable); view.post(runnable); } } static class ICSViewPropertyAnimatorCompatImpl extends BaseViewPropertyAnimatorCompatImpl { WeakHashMap<View, Integer> mLayerMap; static class MyVpaListener implements ViewPropertyAnimatorListener { ViewPropertyAnimatorCompat mVpa; MyVpaListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat) { this.mVpa = viewPropertyAnimatorCompat; } public void onAnimationStart(View view) { ViewPropertyAnimatorListener viewPropertyAnimatorListener; if (this.mVpa.mOldLayerType >= 0) { ViewCompat.setLayerType(view, 2, null); } if (this.mVpa.mStartAction != null) { this.mVpa.mStartAction.run(); } Object tag = view.getTag(ViewPropertyAnimatorCompat.LISTENER_TAG_ID); if (tag instanceof ViewPropertyAnimatorListener) { viewPropertyAnimatorListener = (ViewPropertyAnimatorListener) tag; } else { viewPropertyAnimatorListener = null; } if (viewPropertyAnimatorListener != null) { viewPropertyAnimatorListener.onAnimationStart(view); } } public void onAnimationEnd(View view) { ViewPropertyAnimatorListener viewPropertyAnimatorListener; if (this.mVpa.mOldLayerType >= 0) { ViewCompat.setLayerType(view, this.mVpa.mOldLayerType, null); this.mVpa.mOldLayerType = -1; } if (this.mVpa.mEndAction != null) { this.mVpa.mEndAction.run(); } Object tag = view.getTag(ViewPropertyAnimatorCompat.LISTENER_TAG_ID); if (tag instanceof ViewPropertyAnimatorListener) { viewPropertyAnimatorListener = (ViewPropertyAnimatorListener) tag; } else { viewPropertyAnimatorListener = null; } if (viewPropertyAnimatorListener != null) { viewPropertyAnimatorListener.onAnimationEnd(view); } } public void onAnimationCancel(View view) { ViewPropertyAnimatorListener viewPropertyAnimatorListener; Object tag = view.getTag(ViewPropertyAnimatorCompat.LISTENER_TAG_ID); if (tag instanceof ViewPropertyAnimatorListener) { viewPropertyAnimatorListener = (ViewPropertyAnimatorListener) tag; } else { viewPropertyAnimatorListener = null; } if (viewPropertyAnimatorListener != null) { viewPropertyAnimatorListener.onAnimationCancel(view); } } } ICSViewPropertyAnimatorCompatImpl() { this.mLayerMap = null; } public void setDuration(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, long j) { ViewPropertyAnimatorCompatICS.setDuration(view, j); } public void alpha(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.alpha(view, f); } public void translationX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.translationX(view, f); } public void translationY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.translationY(view, f); } public long getDuration(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { return ViewPropertyAnimatorCompatICS.getDuration(view); } public void setInterpolator(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Interpolator interpolator) { ViewPropertyAnimatorCompatICS.setInterpolator(view, interpolator); } public void setStartDelay(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, long j) { ViewPropertyAnimatorCompatICS.setStartDelay(view, j); } public long getStartDelay(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { return ViewPropertyAnimatorCompatICS.getStartDelay(view); } public void alphaBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.alphaBy(view, f); } public void rotation(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.rotation(view, f); } public void rotationBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.rotationBy(view, f); } public void rotationX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.rotationX(view, f); } public void rotationXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.rotationXBy(view, f); } public void rotationY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.rotationY(view, f); } public void rotationYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.rotationYBy(view, f); } public void scaleX(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.scaleX(view, f); } public void scaleXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.scaleXBy(view, f); } public void scaleY(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.scaleY(view, f); } public void scaleYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.scaleYBy(view, f); } public void cancel(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { ViewPropertyAnimatorCompatICS.cancel(view); } public void m31x(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.m35x(view, f); } public void xBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.xBy(view, f); } public void m32y(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.m36y(view, f); } public void yBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.yBy(view, f); } public void translationXBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.translationXBy(view, f); } public void translationYBy(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, float f) { ViewPropertyAnimatorCompatICS.translationYBy(view, f); } public void start(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { ViewPropertyAnimatorCompatICS.start(view); } public void setListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, ViewPropertyAnimatorListener viewPropertyAnimatorListener) { view.setTag(ViewPropertyAnimatorCompat.LISTENER_TAG_ID, viewPropertyAnimatorListener); ViewPropertyAnimatorCompatICS.setListener(view, new MyVpaListener(viewPropertyAnimatorCompat)); } public void withEndAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable) { ViewPropertyAnimatorCompatICS.setListener(view, new MyVpaListener(viewPropertyAnimatorCompat)); viewPropertyAnimatorCompat.mEndAction = runnable; } public void withStartAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable) { ViewPropertyAnimatorCompatICS.setListener(view, new MyVpaListener(viewPropertyAnimatorCompat)); viewPropertyAnimatorCompat.mStartAction = runnable; } public void withLayer(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { viewPropertyAnimatorCompat.mOldLayerType = ViewCompat.getLayerType(view); ViewPropertyAnimatorCompatICS.setListener(view, new MyVpaListener(viewPropertyAnimatorCompat)); } } static class JBViewPropertyAnimatorCompatImpl extends ICSViewPropertyAnimatorCompatImpl { JBViewPropertyAnimatorCompatImpl() { } public void setListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, ViewPropertyAnimatorListener viewPropertyAnimatorListener) { ViewPropertyAnimatorCompatJB.setListener(view, viewPropertyAnimatorListener); } public void withStartAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable) { ViewPropertyAnimatorCompatJB.withStartAction(view, runnable); } public void withEndAction(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, Runnable runnable) { ViewPropertyAnimatorCompatJB.withEndAction(view, runnable); } public void withLayer(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { ViewPropertyAnimatorCompatJB.withLayer(view); } } static class JBMr2ViewPropertyAnimatorCompatImpl extends JBViewPropertyAnimatorCompatImpl { JBMr2ViewPropertyAnimatorCompatImpl() { } public Interpolator getInterpolator(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view) { return ViewPropertyAnimatorCompatJellybeanMr2.getInterpolator(view); } } static class KitKatViewPropertyAnimatorCompatImpl extends JBMr2ViewPropertyAnimatorCompatImpl { KitKatViewPropertyAnimatorCompatImpl() { } public void setUpdateListener(ViewPropertyAnimatorCompat viewPropertyAnimatorCompat, View view, ViewPropertyAnimatorUpdateListener viewPropertyAnimatorUpdateListener) { ViewPropertyAnimatorCompatKK.setUpdateListener(view, viewPropertyAnimatorUpdateListener); } } ViewPropertyAnimatorCompat(View view) { this.mStartAction = null; this.mEndAction = null; this.mOldLayerType = -1; this.mView = new WeakReference(view); } static { int i = VERSION.SDK_INT; if (i >= 19) { IMPL = new KitKatViewPropertyAnimatorCompatImpl(); } else if (i >= 18) { IMPL = new JBMr2ViewPropertyAnimatorCompatImpl(); } else if (i >= 16) { IMPL = new JBViewPropertyAnimatorCompatImpl(); } else if (i >= 14) { IMPL = new ICSViewPropertyAnimatorCompatImpl(); } else { IMPL = new BaseViewPropertyAnimatorCompatImpl(); } } public ViewPropertyAnimatorCompat setDuration(long j) { View view = (View) this.mView.get(); if (view != null) { IMPL.setDuration(this, view, j); } return this; } public ViewPropertyAnimatorCompat alpha(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.alpha(this, view, f); } return this; } public ViewPropertyAnimatorCompat alphaBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.alphaBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat translationX(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.translationX(this, view, f); } return this; } public ViewPropertyAnimatorCompat translationY(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.translationY(this, view, f); } return this; } public ViewPropertyAnimatorCompat withEndAction(Runnable runnable) { View view = (View) this.mView.get(); if (view != null) { IMPL.withEndAction(this, view, runnable); } return this; } public long getDuration() { View view = (View) this.mView.get(); if (view != null) { return IMPL.getDuration(this, view); } return 0; } public ViewPropertyAnimatorCompat setInterpolator(Interpolator interpolator) { View view = (View) this.mView.get(); if (view != null) { IMPL.setInterpolator(this, view, interpolator); } return this; } public Interpolator getInterpolator() { View view = (View) this.mView.get(); if (view != null) { return IMPL.getInterpolator(this, view); } return null; } public ViewPropertyAnimatorCompat setStartDelay(long j) { View view = (View) this.mView.get(); if (view != null) { IMPL.setStartDelay(this, view, j); } return this; } public long getStartDelay() { View view = (View) this.mView.get(); if (view != null) { return IMPL.getStartDelay(this, view); } return 0; } public ViewPropertyAnimatorCompat rotation(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.rotation(this, view, f); } return this; } public ViewPropertyAnimatorCompat rotationBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.rotationBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat rotationX(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.rotationX(this, view, f); } return this; } public ViewPropertyAnimatorCompat rotationXBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.rotationXBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat rotationY(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.rotationY(this, view, f); } return this; } public ViewPropertyAnimatorCompat rotationYBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.rotationYBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat scaleX(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.scaleX(this, view, f); } return this; } public ViewPropertyAnimatorCompat scaleXBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.scaleXBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat scaleY(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.scaleY(this, view, f); } return this; } public ViewPropertyAnimatorCompat scaleYBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.scaleYBy(this, view, f); } return this; } public void cancel() { View view = (View) this.mView.get(); if (view != null) { IMPL.cancel(this, view); } } public ViewPropertyAnimatorCompat m33x(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.m27x(this, view, f); } return this; } public ViewPropertyAnimatorCompat xBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.xBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat m34y(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.m28y(this, view, f); } return this; } public ViewPropertyAnimatorCompat yBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.yBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat translationXBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.translationXBy(this, view, f); } return this; } public ViewPropertyAnimatorCompat translationYBy(float f) { View view = (View) this.mView.get(); if (view != null) { IMPL.translationYBy(this, view, f); } return this; } public void start() { View view = (View) this.mView.get(); if (view != null) { IMPL.start(this, view); } } public ViewPropertyAnimatorCompat withLayer() { View view = (View) this.mView.get(); if (view != null) { IMPL.withLayer(this, view); } return this; } public ViewPropertyAnimatorCompat withStartAction(Runnable runnable) { View view = (View) this.mView.get(); if (view != null) { IMPL.withStartAction(this, view, runnable); } return this; } public ViewPropertyAnimatorCompat setListener(ViewPropertyAnimatorListener viewPropertyAnimatorListener) { View view = (View) this.mView.get(); if (view != null) { IMPL.setListener(this, view, viewPropertyAnimatorListener); } return this; } public ViewPropertyAnimatorCompat setUpdateListener( ViewPropertyAnimatorUpdateListener viewPropertyAnimatorUpdateListener) { View view = (View) this.mView.get(); if (view != null) { IMPL.setUpdateListener(this, view, viewPropertyAnimatorUpdateListener); } return this; } }