Hey developers, I have a TTF in my assets/fonts directory I can use in TextViews from within code following the API example. That is great for one-offs, but what I really want to do is to use this font in a style, and the reference that style from a layout.
Broken example: <!-- styles.xml --> <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Title"> <item name="android:textSize">24sp</item> <item name="android:typeface">fonts/myfont.ttf</item> </style> </resources> <!-- layout.xml --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/title" style="@style/Title" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </LinearLayout> This would allow me to reuse the same style (including font) without having to do it in code. Anyone have any ideas how to make this work? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---