In Layout Code You can use hint property of EditText

android:hint="My Hint"

but if you want to use change font style of hint text then you need to perform it programatically.
You can do it by following Code



EditText jtxtname = (EditText)findViewById(R.id.txtName) ;

jtxtname.setHint(Html.fromHtml("Enter your Name"));

Leave a Reply