I have created a widget that uses a sequence of images.  I want to be able
to change the sequence of images at runtime, depending on user configuration
(e.g. "Use blue theme", "Use red theme").  

 

I thought creating a resource array for each sequence would work, but that
generates an array of drawables, whereas the setImageViewResource(int, int)
method on RemoteViews takes a resource ID.

 

What is the "best" way to abstract the images that the widget uses, so they
can be loaded during runtime?  Ultimately, I want to be able to load them
from another package, so that I can supply "skins" for my widget.

 

Will I have to use setImageViewBitmap?  

 

Thanks,

 

Alex.

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