是否可以在Android中的TextView中显示数字文本?

Bam*_*eva 5 android textview

嗨朋友们,

在我的应用程序中,要求文本值应以数字文本格式显示,可以在TextView中进行(数字时钟如何显示)?请帮忙.

Pad*_*mar 20

//从此链接下载字体并在资源中创建一个文件夹作为字体,并将您的字体放在该文件夹中

或下载直接链接

Typeface tf = Typeface.createFromAsset(getAssets(),"fonts/digital_07.otf");
        TextView tv = (TextView) findViewById(R.id.digitalclock);
        tv.setTypeface(tf);
Run Code Online (Sandbox Code Playgroud)

编辑:

我也附上了项目链接

请享用 :-)