Search code examples
androidlistviewtextviewlineword-wrap

Is there a way to disable line wrap in a List View in android?


I have a list view holding text views and when the text gets too big, it wraps and the item takes up two spaces. I am wondering if there is a way to turn off line wrap in this case, and if it should be done in the textview or the listview.


Solution

  • Set android:singleLine attribute in TextView to true