Android: EditText hint in single line Android: EditText hint in single line android android

Android: EditText hint in single line


You can use

android:ellipsize="end"

android:maxLines="1"

to show your hint text in single line but you wont be able to see the whole text because android:ellipsize="end" truncates the text at the end.


You can try using

android:maxLines="1"


Same issue.

Solution:

EditText.setHint("hint content".replace("\n"," "))