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.031 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