i got a hint of that while i was trying hard to get it. Thank you Mark for
the early reply. Just one more query, will it be the same if i set the
Background of the view or will it just depend on the invalidate() call?

On Thu, Aug 6, 2009 at 4:55 PM, Mark Murphy <mmur...@commonsware.com> wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to