Pushing Canvas or Bitmap to RemoteView

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Pushing Canvas or Bitmap to RemoteView

Postby cnich23 » Thu Jan 21, 2010 9:31 am

I am attempting to use an asset font on a home widget. I know that I cannot access it using findViewById() so setTypeface is out(). If I draw the text using a canvas in my process what is the best way to push it to the RemoteView?

Thanks for any insight.
cnich23
Junior Developer
Junior Developer
 
Posts: 14
Joined: Thu Jan 21, 2010 9:22 am

Top

Postby appforce » Thu Jan 21, 2010 2:17 pm

Hi,

If you use ImageView in the widget, you can push Bitmaps to it.

Android developers
appforce
Experienced Developer
Experienced Developer
 
Posts: 60
Joined: Mon Nov 23, 2009 8:28 pm

Postby cnich23 » Thu Jan 21, 2010 11:33 pm

I have tried that and it unfort. it is reverting to the default droid font instead of using the canvas font. The same code works in an Activity but seems to be failing when using setImageViewBitmap()
cnich23
Junior Developer
Junior Developer
 
Posts: 14
Joined: Thu Jan 21, 2010 9:22 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests