【发布时间】:2010-06-25 21:47:34
【问题描述】:
如果文本比文本视图的宽度长,在第二行之后,它会剪切它并在它的末尾添加“...”。方向无关紧要,它只会显示更多文本,直到第二行结束,这里是 textview XML:
<TextView android:id="@+id/ContentViewerDescription"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:ellipsize="end"
android:maxLines="20"
android:textColor="#999999"
android:layout_marginTop="10px"
android:layout_marginLeft="10px"/>
【问题讨论】: