Good day, everyone!
Today I got, as I suppose, very interesting question. On my job we are creating a dating service and one of the main features will be the screen, where photos of different girls( or guys) are shown and the user press either "Hot" or "Not" button. Both of these buttons are displayed below the photo on the screen. Our analytics say (god "bless" them...) that we should implement some kind of "gaming" mechanics, so the want such a thing: when user press, for example, "Not" button - it starts freezing and covering with ice, then it breaks and then the next photo is shown. That is not scale or rotate or translate animation... the button itself, its "godblessed" content should be changing over some small period of time (a second or two maybe). That scares me alot, cause when I'm thinking about scaling these buttons on different devices, and different troubles with ninepatch and hand-made-frames animations I' m (as it looks like) going to make - I want to cry...
Tell me please, I need your expertise - is it really to make such thing??? Or maybe there are any kind of workarounds or something...
Please, I'm nearly panic...
Then
Create list of images in drawable folder:
Use ImageView img instead of button and set the list as background in xml, then in code use AnimationDrawable to start the animation
You can animate Alpha, location and just about any property of a button using ObjectAnimators and ValueAnimators.
If you want custom animations such as the ice effect, you'll have to make these yourself.