Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RelativeLayout rl = (RelativeLayout)findViewById(R.id.crpl_bars);
- AlphaAnimation anim = (AlphaAnimation) AnimationUtils.loadAnimation(this, R.anim.fade_in);
- anim.setRepeatMode(Animation.RESTART);
- anim.setRepeatCount(Animation.INFINITE);
- LayoutAnimationController controller = new LayoutAnimationController(anim, 0.5f);
- rl.setLayoutAnimation(controller);
- rl.setLayoutAnimationListener(new AnimationListener() {
- @Override
- public void onAnimationStart(Animation animation) {
- // TODO Auto-generated method stub
- }
- @Override
- public void onAnimationRepeat(Animation animation) {
- }
- @Override
- public void onAnimationEnd(Animation animation) {
- // TODO Auto-generated method stub
- }
- });
- rl.startLayoutAnimation();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement