2

Is it possible to set a custom font as default in a android application? Because typing this for every TextView is not efficient.

 login = (TextView)findViewById(R.id.tvLogin);
 login.setTypeface(titleFont);
Trevi Awater
  • 2,387
  • 2
  • 31
  • 53
  • 1
    Have you tried the workaround documented here: http://stackoverflow.com/questions/2711858/is-it-possible-to-set-font-for-entire-application – Erik Nedwidek Jun 21 '14 at 22:26
  • 1
    Also check this out: http://stackoverflow.com/questions/17647615/set-a-consistent-theme-for-all-the-edittexts-in-android/17648144#17648144 – BugaIulian Jun 21 '14 at 22:29

1 Answers1

1

Is it possible to set a custom font as default in a android application?

Not for a custom Typeface that you loaded from your own font file, sorry. As others have noted, there are workarounds and libraries to help simplify matters a bit. Personally, I'd look at Calligraphy or perhaps Fontify.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491