Because widgets live in other processes, they can only use system
typefaces, and not additional fonts that might be internal to your
package.  One way around this would be to render your font onto a
Bitmap in your process, and then push it across RemoteViews.

j


On Sun, May 31, 2009 at 7:48 PM, RTX <[email protected]> wrote:
>
> im trying to show font from my assets on a widget
> but i dont know how to set the typeface from a remoteView
>
> here is what i do now right now
>
>
> RemoteViews updateViews = new RemoteViews(context.getPackageName(),
> R.layout.Test);
> updateViews.setTextViewText(R.id.TextView01, "test");
> ComponentName thisWidget = new ComponentName(this, RSSWidget.class);
> AppWidgetManager manager = AppWidgetManager.getInstance(this);
> manager.updateAppWidget(thisWidget, updateViews);
>
> how do i change the view font
>
> thanks in advanced
>
> RTX
> >
>



-- 
Jeff Sharkey
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to