Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Android:add helvetica neue font in application
  2. place the TTF file in the ./assets directory (create it if it doesn’t exist yet).
  3.        
  4. 1. TextView txt = (TextView) findViewById(R.id.custom_font);  
  5.    2. Typeface font = Typeface.createFromAsset(getAssets(), "<font file name>.ttf");  
  6.    3. txt.setTypeface(font);