Code example for Transformation

Methods: getMatrix

0
        @Override 
        protected void applyTransformation(float interpolatedTime, Transformation t) {
            float dx = -getLeft() * interpolatedTime;
            float dy = -getWidgetTop() * interpolatedTime;
            t.getMatrix().setTranslate(dx, dy);
        } 
    } 
 
    /**  
     * Moves the view from the top left corner of its parent. 
     */ 
    private class FromParentOriginAnimation extends Animation {
        @Override 
        protected void applyTransformation(float interpolatedTime, Transformation t) {
            float dx = -getLeft() * (1.0f - interpolatedTime);
            float dy = -getWidgetTop() * (1.0f - interpolatedTime);
            t.getMatrix().setTranslate(dx, dy);
        } 
    } 
     
    /**