Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Pushing Canvas or Bitmap to RemoteView

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: Yahoo [Bot] and 4 guests