Re: [android-developers] Can an AppWidget's RemoteViews be edited/created dynamically, or only from XML?

2010-05-29 Thread Kostya Vasilyev
James, I don't have the answer, but I would like to amend your question. Switching views is one thing, but what if there are versions of the same widget that have different sizes? Minimal widget size is specified in res/widget.xml, using appwidget-provider minWidth minHeight. Is it posible to

[android-developers] Can an AppWidget's RemoteViews be edited/created dynamically, or only from XML?

2010-05-28 Thread James W
I suspect the answer is no, but it only seems possible at the moment to update an AppWidget via a RemoteViews object which is inflated from a static XML file. Is there any way to build a RemoteViews object on the fly, or edit the layout of one that is already there? The requirement is that I