标签: android textview
朋友们,
在我的应用程序中,要求文本值应以数字文本格式显示,可以在 TextView 中进行显示(数字时钟如何显示) ?请帮忙。
答案 0 :(得分:19)
//从此link下载字体并在资源中创建一个文件夹作为字体并将字体放在该文件夹中
或直接下载link
Typeface tf = Typeface.createFromAsset(getAssets(),"fonts/digital_07.otf"); TextView tv = (TextView) findViewById(R.id.digitalclock); tv.setTypeface(tf);
编辑:
我附上了项目link also
享受: - )