I try to use the setTypeface to display musical unicode symbols, but
it doesn't work. Here is my code. Any workaround?
.java file
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.notes);
TextView tv=(TextView)findViewById(R.id.minim);
Typeface face=Typeface.createFromAsset(getAssets(),
"fonts/musica.otf");
tv.setTypeface(face);
}
,xml file
<Button android:id="@+id/minim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" <i copy paste the note from word.doc, but is only
show up square" >
</Button>
--
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