Sherif ElNady Sherif ElNady - 3 months ago 48
Android Question

Make EditText hint all caps

I want to make the EditText hint appear in capital case characters without adding an upper case string in the strings file, Any help?

Answer

I think this is an example you can try:

myEditText.setHint(getResources().getString(R.string.your_text_in_string).toUpperCase());
Comments