iconfont使用:
1、将.ttf文件放在assets文件中
2、将Typeface设置到textView上就可以展示
Typeface iconTypeface = Typeface.createFromAsset(getAssets(), "androidicons.ttf");
textView = (TextView)findViewById(R.id.iconView);
textView.setTypeface(iconTypeface);
iconfont使用:
1、将.ttf文件放在assets文件中
2、将Typeface设置到textView上就可以展示
Typeface iconTypeface = Typeface.createFromAsset(getAssets(), "androidicons.ttf");
textView = (TextView)findViewById(R.id.iconView);
textView.setTypeface(iconTypeface);