package com.wenchao.animation;

import android.animation.TypeEvaluator;
import android.widget.RelativeLayout.LayoutParams
        ;

public class RelativeLayoutParamsEvaluator implements TypeEvaluator<LayoutParams> {

    @Override
    public LayoutParams evaluate(float fraction, LayoutParams start,
                                 LayoutParams end) {

        LayoutParams result = new LayoutParams(start);
        result.leftMargin += ((end.leftMargin-start.leftMargin)*fraction);
        result.rightMargin += ((end.rightMargin-start.rightMargin)*fraction);
        result.topMargin += ((end.topMargin-start.topMargin)*fraction);
        result.bottomMargin += ((end.bottomMargin-start.bottomMargin)*fraction);
        return result;
    }

}

@@ -126,16 +126,57 @@
      ;%0A%0A
+import com.wenchao.cardstack.CardUtils;%0A%0A
 public c
@@ -423,18 +423,23 @@
 t = 
-new Layout
+CardUtils.clone
 Para

remove copy contructor in animation evaluator