android - how to change images with timer -


Hi all I have to say images image1 and image2 I want to display both images on the timer, only visible on one image Give it a moment Both images are overlapped, which means image1 is greater than image2.

So, if I use the timer, then I want to be able to show an image at a time. How do I do this I hope that I am clear of my problem.

Put your picture in the DROP folder. And create a splash.xml file in the drawable folder like this:

& lt; Animation-list xmlns: android = "http://schemas.android.com/apk/res/android" Android: Oneshot = "true" & gt; & Lt; Item android: drawable = "@ drawable / splash_1" Android: period = "200" /> & Lt; Item Android: drawable = "@ drawable / splash_2" Android: period = "200" /> & Lt; Item Android: Dragon = "@ Drauble / Splash" Android: Period = "200" /> & Lt; Item android: drawable = "@ drawable / splash_4" Android: period = "200" /> & Lt; Item Android: Dragon = "@ Drauble / Splash_5" Android: Period = "200" /> & Lt; / Animation-list & gt;

and in your activity class

  setContentView (R.layout.splashscreen); Find final imageview splash image = (imageview) VVBIID (R. Splash. ImageView); SplashImage.setBackgroundResource (R.drawable.splash); SplashAnimation = (animation dragable) splashImage.getBackground (); SplashAnimation.start ();  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -