I'm having some trouble adding a custom font to skin.xml
Here is my code
I have this in the skins xml files
Code:
<TextView android:id="@id/sender_phone_num"
android:textColor="#332f33"/>
So I added this to my main package
Code:
TextView tv=(TextView)findViewById(R.id.sender_phone_num");
Typeface face=Typeface.createFromAsset(getAssets(),
"fonts/nokiafc22.ttf");
tv.setTypeface(face);
and placed the font in the assets/fonts folder
I must be missing something, because the font isn't changing in app
Any suggestions?
--
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