On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving <[email protected]> wrote: > So basically the widget can only use stuff from the OS?
Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout where it lists the eligible classes for use through a RemoteViews. > Let's say you want > to draw something nice into a widget, I saw several widgets doing that, like > HTML content or so, or a picture from your mum (j/k), how would you do that? Since you neglected to point out any examples, and since it is impossible to tell by looking at a set of pixels whether or not they came from "HTML content or so", it is difficult to answer your question. TextView supports SpannedString, such as that returned by Html.fromHtml(). RemoteViews supports sending a SpannedString to an app widget. Hence, you can use that subset of HTML supported by fromHtml() in a TextView hosted by an app widget. Also, please bear in mind that home screens are not subject to app widget limitations. So, just because you might see an HTC Sense or MOTOBLUR home screen doing something fancy does not mean that an app widget is capable of the same feats of derring-do. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.2 Available! -- 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

