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
[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 - Change Spinner Font?

Change Spinner Font?

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

Change Spinner Font?

Postby Derek5432 » Sat Jun 06, 2009 6:39 pm

I want to apply a non-native font to widgets in my app. This is working fine for TextViews and Buttons, which have a setTypeface method. The code below works just great for my button:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Typeface face = Typeface.createFromAsset(getAssets(), "fonts/my_font.ttf");            
  2.  
  3. playButton = (Button) findViewById(R.id.play_button);
  4.  
  5. playButton.setTypeface(face);
Parsed in 0.010 seconds, using GeSHi 1.0.8.4


But I just can't seem to figure out how to apply the font to a Spinner. Any ideas?
Derek5432
Junior Developer
Junior Developer
 
Posts: 15
Joined: Thu Mar 12, 2009 1:42 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests