assets目录下放入自定义ttf字体
代码中使用
TextView textView = (TextView)findViewById(R.id.textView);
Typeface typeface = Typeface.createFromAsset(this.getAssets(), "normal.TTF");
textView.setTypeface(typeface);
assets目录下放入自定义ttf字体
代码中使用
TextView textView = (TextView)findViewById(R.id.textView);
Typeface typeface = Typeface.createFromAsset(this.getAssets(), "normal.TTF");
textView.setTypeface(typeface);