There is a given set of predefinied Views that can be used in layouts for AppWidgets. How can a customized View added to this list? The minimum requirement is that the class is annotated with RemoteView. What else is necessary to be acceptable as view in the layout.xml?
+2
A:
You cannot use custom views as RemoteViews and it is not currently planned.
Romain Guy
2010-01-22 01:43:53
And the documentation is here, for reference: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
Roman Nurik
2010-01-22 01:46:04
How did HTC get customized views in their widgets?
friedger
2010-01-22 01:52:24
Just like we did for the Search widget in the default open source Home screen: it's built in the Home screen.
Romain Guy
2010-01-22 06:22:58
A:
Roman & Romain, can you elaborate why it is not possible to use custom views, or at least construct the RemoteViews programmatically ?
Pavel Lahoda
2010-06-30 16:50:20