Code example for Transformation

Methods: getMatrix, setAlpha

0
 
        @Override 
        protected void applyTransformation(float interpolatedTime, Transformation t) {
            View view = mViewRef.get();
            if (view != null) {
                t.setAlpha(mAlpha);
                transformMatrix(t.getMatrix(), view);
            } 
        } 
    } 
 
    private static class AnimatorProxyPostHC implements AnimatorProxyImpl { 
        private WeakReference<View> mViewRef;
 
        public AnimatorProxyPostHC(View view) {
            mViewRef = new WeakReference<View>(view);
        } 
 
        @Override 
        public float getAlpha() { 
            View view = mViewRef.get();