I am new to android programming What I am trying to do is scale the buttons one by one across my row. But what is happening is they all scale at the same time.
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;
}