1. create assets/fonts/ and put your TTF files in there:
2.set view's properties.
TextView tv=(TextView)findViewById(R.id.custom);
Typeface face=Typeface.createFromAsset(getAssets(), "fonts/ARIAL.ttf");
tv.setTypeface(face);
Blog completely focused on android question-answer.
1. create assets/fonts/ and put your TTF files in there:
2.set view's properties.
TextView tv=(TextView)findViewById(R.id.custom);
Typeface face=Typeface.createFromAsset(getAssets(), "fonts/ARIAL.ttf");
tv.setTypeface(face);
Comments
Post a Comment