Saturday, September 8, 2012

To Display Indian Currency by Coding In Android


Public Class RupeesFont Extends Activity
{
    @override
    publicvoid onCreate(Bundle icicle)
    {
       super.onCreate(icicle);
       setContentView(R.layout.main);
         TextView tv=(TextView)findViewById(R.id.custom);
         Typeface face=Typeface.createFromAsset(getAssets(),"fonts/Rupee.ttf");
         tv.setText("`");
         tv.setTypeface(face);
    }

}

Rupees font ttf file