导航

ScaleAnimation

Posted on 2012-07-13 15:14  曙光城邦  阅读(1194)  评论(0编辑  收藏  举报

        1.ScaleAnimation(float fromX, float toX, float fromY, float toY)
          从原始大小,放大到两倍.以左边为开始点。(fromX=1,fromY=1,toX=2,toY=2)
          从零放大两倍(fromX=0,fromY=0,toX=2,toY=2)
        2.ScaleAnimation(float fromX, float toX, float fromY, float toY, float pivotX, float pivotY)
          (pivotX,pivotY)为放大的中心点。
        3.ScaleAnimation(1,2,1,2,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
          (Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f)根据自身大小计算的增量坐标.

不明白增量坐标去看TranslateAnimation吧