Ankush Ankush - 4 days ago 6
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
editText.setTypeface(Typeface.SERIF);

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

Comments