I am trying to replicate this Prototype I am currently using a view Flipper for the background to move (animate) but i am able to use the animate on the first image but not as the same in others images.
When the Slideshow starts again, the first image does not animate only. Is it because i am animating it in OnCreate()?
viewFlipper = (ViewFlipper)findViewById(R.id.viewFlipper);
fadeIn = AnimationUtils.loadAnimation(this, R.anim.fade_in);
fadeOut = AnimationUtils.loadAnimation(this, R.anim.fade_out);
viewFlipper.setAutoStart(true);
viewFlipper.setInAnimation(fadeIn);
viewFlipper.setOutAnimation(fadeOut);
viewFlipper.setFlipInterval(5000);
viewFlipper.startFlipping();
TranslateAnimation animation = new TranslateAnimation(-100.0f, -50.0f, 0.0f, 0.0f);
animation.setDuration(5000);
animation.setRepeatCount(100);
animation.setRepeatMode(100);
bgone.startAnimation(animation); //bgone is the image1
bgtwo.startAnimation(animation);
bgthree.startAnimation(animation);
bgfour.startAnimation(animation);
bgfive.startAnimation(animation);
What do u reckon for duplicating the prototype ? any links will help