安卓scale動畫pivotX詳解

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就是相對父控件偏移值

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章