Thank you very much Ernest. This really help to get a new idea.
On Mon, Jan 12, 2009 at 3:23 PM, Ernest <[email protected]> wrote: > > Hi Mahesh > Here is my demo codes: > ImageView image = new ImageView(ctx); > flashProgress = 0; > android.os.Handler flash = new Handler() { > public void handleMessage(Message msg) { > super.handleMessage(msg); > switch (flashProgress) { > case 0: > > image.setImageResource(R.drawable.anaimation1); > image.invalidate(); > flashProgress++; > this.sendEmptyMessageDelayed(0, > 500); > break; > case 1: > > image.setImageResource(R.drawable.anaimation2); > image.invalidate(); > flashProgress++; > this.sendEmptyMessageDelayed(0, > 500); > break; > case 2: > > image.setImageResource(R.drawable.anaimation3); > image.invalidate(); > flashProgress++; > this.sendEmptyMessageDelayed(0, > 500); > break; > case 3: > > image.setImageResource(R.drawable.anaimation4); > > image.invalidate(); > flashProgress++; > this.sendEmptyMessageDelayed(0, > 500); > break; > default: > break; > } > } > }; > > flash.sendEmptyMessage(flashProgress); > > the images will switch each 500ms. Hope it will help you. > Best Regards > > > Mahesh Vaghela www.indianic.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

