Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 0    Views: 91

DJM
Lost but trying
Profile
Posts: 50
Reg: Aug 20, 2013
planet earth
500
05/06/14 05:22 PM (10 years ago)

Playing with first app - tablelayout and animation

I am trying to play with animation. this code animated the whole table row at the same time but i a trying to just scale one button at a time in the row. Any ideas what I am doing wrong --- thanks! for(int xcnt = 1; xcnt < 9; ){ RelativeLayout box = (RelativeLayout) buttonBoxes.get(xcnt); Animation animscale = new ScaleAnimation(1f, 1.5f, 1f, 1.5f, Animation.RELATIVE_TO_SELF, (float)0.5, Animation.RELATIVE_TO_SELF, (float)0.5); animscale.setDuration(2000); animscale.setStartOffset(1000); // pause for 1 second animscale.setRepeatMode(ValueAnimator.REVERSE); box.startAnimation(animscale); animscale.setStartOffset(1000); // pause for 1 second xcnt = xcnt +1; }
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.