字体下载库地址:http://font.niutuku.com/TTF/index_3.shtml
直接下载解压即可.
将解压的.ttf放到资源目录下(如下图)
mWord = (EditText) findViewById(R.id.word); mWord.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/test.ttf"));
完成!
字体下载库地址:http://font.niutuku.com/TTF/index_3.shtml
直接下载解压即可.
将解压的.ttf放到资源目录下(如下图)
mWord = (EditText) findViewById(R.id.word); mWord.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/test.ttf"));
完成!