Saurav Mukherjee wrote: > can anyone please tell me that does setImageResource() in ImageView also > draws the image instantly on the screen or does it require any other > function call? i need to display the image as soon as i set the resource.
The change will take effect as soon as you give control back to Android so it can continue processing the message loop. So, for example, if you call setImageResource() in the onClick() handler of a Button, the change will not take effect until sometime shortly after you return from onClick(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---