android:singleLine
outdated .
This is what the documentation says:
"This attribute is deprecated and replaced with textMultiLine in the inputType attribute. Use caution if changing existing layouts because the default value of singeLine is false (multi-line mode), but if you specify any value for inputType, single-line mode is used by default. (If and singleLine, and inputType attributes are found, inputType flags override the value of SingleLine.). [Boolean] "
To solve your problem. You can use the following:
android:ellipsize="end" android:maxLines="1"
Jaydeepw
source share