Ankush Ankush - 10 months ago 69
Android Question

change font for editText hint

Is it possible to change the font for the hint displayed in the

EditText
field? I want to set the font in the xml itself.

Answer Source
editText.setTypeface(Typeface.SERIF);

You can change the font of EditText just like TextView. But you cannot change the typeface of hint.