Tl dr
For new users who see this question, use android:singleLine="true" . Ignore failure warnings.
Description
According to this error report , setting android:maxLines="1" may cause your application to crash when certain values ββare set in android:ellipsize . Apparently, this affects most Android devices running 4.1 Jellybean through 6.0.1 Marshmallow (fixed in 7.0 Nougat). Depending on your device, your mileage may vary. However, if you as a developer are focused on a wide range of devices, it is better to use android:singleLine="true" to prevent crashes.
source share