Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to show digital texts in TextView in Android?

Hi friends,

In my application there is a requirement that the text values should be shown in a digital text format can it be possible to do in TextView (How digital clock shows)? Any help please.

like image 569
Bamadeva Avatar asked Feb 14 '12 12:02

Bamadeva


1 Answers

//download the font from the this link and create a folder as fonts inside your assets and put your font in that folder

or download direct link

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

EDIT :

I attached the project link also

Enjoy :-)

like image 51
Padma Kumar Avatar answered Nov 15 '22 04:11

Padma Kumar