我是靠谱客的博主 傲娇汉堡,最近开发中收集的这篇文章主要介绍android按钮缩放动画效果,如何从右到左缩放一个按钮,android动画,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

public ScaleAnimation (float fromX,float toX,float fromY,float toY,int pivotXType,float pivotXValue,int pivotYType,float

pivotYValue)

Since: API Level 1

Constructor to use when building a ScaleAnimation from code

Parameters:

fromX: Horizontal scaling factor to apply at the start of the animation

toX: Horizontal scaling factor to apply at the end of the animation

fromY: Vertical scaling factor to apply at the start of the animation

toY: Vertical scaling factor to apply at the end of the animation

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

Animation.RELATIVE_TO_PARENT.

pivotXValue: 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.

pivotYType: Specifies how pivotYValue should be interpreted. One of Animation.ABSOLUTE,or

Animation.RELATIVE_TO_PARENT.

pivotYValue: The Y coordinate of the point about which the object is being scaled,specified as an absolute number where 0 is the top

edge. (This point remains fixed while the object changes size.) This

value can either be an absolute number if pivotYType is ABSOLUTE,or a percentage (where 1.0 is 100%) otherwise.

最后

以上就是傲娇汉堡为你收集整理的android按钮缩放动画效果,如何从右到左缩放一个按钮,android动画的全部内容,希望文章能够帮你解决android按钮缩放动画效果,如何从右到左缩放一个按钮,android动画所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(70)

评论列表共有 0 条评论

立即
投稿
返回
顶部