0

I need a Layout that works like TextView. For example, if the text doesn't fit the whole line it goes to the next line.

I have whole bunch of TextViews and I want to add it to a layout from left to right and if it does fit anymore it goes to next line.

Does anyone have solutions?

Hong Wei Wang
  • 1,388
  • 3
  • 19
  • 29

2 Answers2

1

You are talking about a FlowLayout. Android does not currently have a FlowLayout, but one of the Android Devs (Romain Guy) shows how to make your own in this lecture

Sound Conception
  • 5,263
  • 5
  • 30
  • 47
  • Supplement: http://stackoverflow.com/questions/4474237/how-can-i-do-something-like-a-flowlayout-in-android – Andrew T. Dec 30 '13 at 00:47
0

Add android:SingleLine="true" to your TextView.

Chips J.
  • 1
  • 4