> I been trying to figure out how to change the font type of a TextView
> via an xml...
>
> As far as I got was this:
> Typeface.create("Arial", Typeface.BOLD_ITALIC);
>
> And I'm not sure if it even works...  I would rather do this on the
> xml layout...

Via XML, you can only specify the three built-in font types (sans, serif,
monospace).

For anything else, you need to use Typeface.createFromAsset() (for
TrueType fonts stored as assets) and apply it in Java code.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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