How to partially update views in an app widget without rebuilding all the RemoteViews
Posted
by
Gianni Costanzi
on Stack Overflow
See other posts from Stack Overflow
or by Gianni Costanzi
Published on 2012-08-04T11:34:52Z
Indexed on
2013/11/04
3:54 UTC
Read the original article
Hit count: 289
I'm implementing an app widget and I'd like to be able to change the property of a single view in the widget layout, without rebuilding all the RemoteViews
from scratch, which involves loading XML etc and which is not necessary in some circumstances.. Is there a way to say "update property X on view identified by a specific ID in the current widget layout"? I've seen that there is a partiallyUpdateAppWidget
method in the AppWidgetManager
class but I can't understand nor if it is meant for this purpose neither how it must be used.. Can you help me or point me to a useful link or example?
© Stack Overflow or respective owner