Set Edittexts hint text style as italic

lagos picture lagos · Feb 4, 2013 · Viewed 29.5k times · Source

I need to set the hint of a EditText as italic style, but I can't find any place how to do it.

Some one here has a clue how to do it or do I have to accept that is impossible?

Answer

Deepzz picture Deepzz · Feb 4, 2013

Inside strings.xml

 <string name="hint1"><i>Your hint here</i></string>

In your .xml file

  <EditText android:hint="@string/hint1" />