Try implementing your own Drawable. This way you could draw spinner while 
actual image loads. As soon as you have image to display, your drawable 
could handle that as well. Use setImageDrawable() call to apply.

On Tuesday, June 12, 2012 2:04:28 AM UTC-5, Karakuri Dev wrote:
>
> *Short version*: Can I use the indeterminate progress spinner as the 
> source image for an ImageView?
>
> *Long version*: I have an ImageView with a custom background (it's 
> actually a custom widget that extends ImageView and implements extra 
> drawing in onDraw). While the source image is loading, I want to show the 
> indeterminate progress spinner. Thus far all the solutions I've seen have 
> involved rotating the entire ImageView, which I cannot use for this. I've 
> tried replicating the drawable xml used by the system and setting that as 
> the source image, but the result is always a static image that doesn't 
> spin. Is there some way to set a rotating drawable as the source image?

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