How to set a TextView to display text in one line in Android
android:singleLine="true"
is the answer
Update :
android:singleLine
attribute has been deprecated since API Level 3, you can use
android:maxLines="1"
You should use android:maxLines="1"
in your TextView tag.
android:singleLine="true"
is deprecated.