I can get the button to animate when it is touched but only for a set time/repeat interval. i just want a scale animation so it grows in size while touched
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you should be able to animate a button when it is touched and for a set period of time…repeat…etc.
Take a look at Animation Section
boolean getTransformation(long currentTime, Transformation outTransformation, float scale)
Gets the transformation to apply at a specified point in time.
void restrictDuration(long durationMillis)
Ensure that the duration that this animation will run is not longer than durationMillis.
long getDuration()
How long this animation should last
int getRepeatCount()
Defines how many times the animation should repeat.
I hope this helps you out.