Edit Text Hint is not visible in android studio design preview but is visible on emulator when app runs

Viewed 1711

Hint is not visible in android studio design preview but when I run the app on emulator or my mobile device then hint is shown in the edit text. How to make the hint visible in design preview also.

enter image description here

3 Answers

This is usually the case with edittext. Change the background of the edittext to white and it should display in the layout editor too. If it doesn't, check the hint text colour.

Try restarting your project. Go to File -> Invalidate Caches and Restart.

i think you should try to resize the layout in design part or go file and do invalidate caches and restart option

Related