How can I repeat an animation Infinite times or set the repeat mode to Inverse. Like we do
Animation anim = new AlphaAnimation(0.0f, 1.0f);
anim.setDuration(duration);
anim.setStartOffset(offset);
anim.setRepeatMode(Animation.REVERSE);
anim.setRepeatCount(Animation.INFINITE);
view.startAnimation(anim);