2013-02-18 55 views
0

我想要获得水平非滚动文本的布局,其中每个textView都会尝试在同一行中放入,如果有足够的空间或者它会转到下一行。我真的不知道该怎么形容它,但我的意思是这样:水平文本列表

+=================+ 
|(text1) (text2) | 
|(abc) (def) (ghi)| 
|(longertext)  | 
|     | 
|     | 
|     | 
|     | 
+=================+ 

我甚至不知道从哪里开始或如何看待类似的东西,所以任何帮助将不胜感激。提前致谢。

回答

0

使用此为您的TextView

android:ellipsize="marquee" 
android:scrollHorizontally="true" 
android:focusable="true" 
android:focusableInTouchMode="true"