Answer the question
In order to leave comments, you need to log in
How to implement an animation of moving and changing the background color of a Button at the same time?
I'm new to Android development and I want to figure out how to implement such an animation. There is a button. I need to smoothly move it slightly up in Y by pressing it and at the same time the background color should change smoothly. When I release the button, it should return just as smoothly to its original state. I tried to implement this animation using the animate() method in OnSetTouchListener, but this way you can only implement scale, translate, and the like. But I also need to smoothly change the background. Please tell me the best way to implement this. Thanks in advance for your help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question