安卓scale动画pivotX详解

来源:互联网 发布:知乎抄袭quora 编辑:程序博客网 时间:2024/06/05 05:47

pivotXType    int: Specifies how pivotXValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.


pivotXValue:  float: The X coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the left edge. (This point remains fixed while the object changes size.) This value can either be an absolute number if pivotXType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.








如果设置为:

Animation.ABSOLUTE
则pivotX就是偏移
坐标值



如果设置为:
Animation.
RELATIVE_TO_PARENT
则pivotX就是相对父控件偏移值

0 0
原创粉丝点击