开发者

Button and animated transition between normal / selected / pressed states

Android 开发者_JAVA技巧Button changes its background drawable when it moves between different states (normal, pressed, selected, disabled). The background switch is instant. Is it posible to make it smooth (animated)?


Yes, it is possible. You simply addAnimation() for button. 4 animations that are supported: translate, rotate, alpha, scale. I guess you know them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜