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.
精彩评论