Mohammad AL - Haque
Mohammad AL - Haque

Reputation: 77

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

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

Upvotes: 3

Views: 3074

Answers (3)

Andrew Chelix
Andrew Chelix

Reputation: 1212

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.

Upvotes: 4

Nadeem
Nadeem

Reputation: 93

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

Upvotes: 0

Dev Randalpura
Dev Randalpura

Reputation: 126

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

Upvotes: 0

Related Questions