For setting the Single Line in EditText
we use android:singleLine=\"true\"
but I want to set the single line for the Hint Text, it is large and I w
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"," "))