I would go this way: have images for "default" skin in you application and then at runtime resolve other applications that contain alternative skind and grab resources from them. When user decides to change the skin, you just enumerate over available skins and use different resources to supply RemoteViews.
On Aug 23, 7:52 pm, "Alex Roebuck" <[email protected]> wrote: > 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 [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

