Change font for EditText in Android?

William L. picture William L. · May 26, 2012 · Viewed 48.8k times · Source

Is there any way to change the font for a EditText in Android? I want it to match the font's I set for all my textViews.

Answer

Samir Mangroliya picture Samir Mangroliya · May 26, 2012
 editText.setTypeface(Typeface.SERIF); 

As like as for TextView.

 <TextView
  ...
     android:typeface="serif"
  ... />

Edit: Above is the XML