I have a table layout with 3 rows and 3 columns. In total, there are 9 image views with the background set I have. All these image views are initially hidden but it is making invisible. I have a way of displaying a fade-in-fade-out animation when I call my animation function on an image view, it's working fine, though if I call from the loop for the episode, then all the images The scenes are animated together, I need to have it in sequence
e.g. For (Int i = 0; I Zero initialization () {Fade on the given image view fades to work fine on an image} Note: I have declared an array of images, so I want Java No need to use Image views to dynamically access reflections. int [] imageViews = {R.id.imageView01, R.id.imageView02, R.id.imageView03, R.id.imageView04, R.id.imageView05, R.id.imageView06, R .id.ImageView07, R.id.ImageView08, R.id.ImageView09} I have tried Thread.Sleep (xxx) and even handler but still not able to achieve my purpose. In fact, if I send an image to image visualization and start animation (), then that image should get out of Fadin at that image view location and return to main activity after completing the entire animation. Right now it seems looks like such that Fadin is returning only after completing feedout animation on all IMAJViews. help please. I did this in my game before you need to store all the buttons in the map: / P> Then when you create a button, add it to the map: You then need to call a visible method button buttons (0) like Call ShowButtons (On button ++) onAnimationEnd break all buttons tired this recurring Looping If you need to make another delay between each animation, then you can use the postdel method: at the end of the animation
Private map & lt; Integer, button & gt; Button View = New Hashmap & lt; Integer, button & gt; ();
Button View (0, myButton);
showButtons (int button) {// set button visible button. View (button) .setVisibility (View.VISIBLE); // set button animation animation myAnim = AnimationUtils.loadAnimation (MyActivity.this, R.anim.fadeIn); ButtonViews.get (button) .startAnimation (myAnim); // then use onAnimationEnd myAnim.setAnimationListener (New AnimationListener) {Public Zero onAnimationEnd (Animation Animation ...
Comments
Post a Comment