嗨,如何为列表视图行获得这个结果?我有两个文本视图和一个图像视图应该是正确的乘坐始终。如果textview1会收到很长的文本,应该是这样的
for small textfor textview1
--------------------------
|Textview1(23) ---> |
| |
--------------------------
for long textfor textview1
--------------------------
|Textview1....(23) --->|
| |
--------------------------
请帮帮我
发布于 2014-02-06 23:09:23
就像这样:
<TextView
android:id="@+id/txt_email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxEms="23"
android:singleLine="true"
android:textColor="@color/black" />
更新:尝试设置如下
android:maxLines="1" android:maxLength="10" android:ellipsize="marquee"
发布于 2014-02-07 00:10:09
在textview中添加这些属性。
android:ellipsize="end" android:maxLines="1" android:scrollHorizontally="true"
https://stackoverflow.com/questions/21621332
复制