如果文本长度超过TextView的宽度,在第二行后,会将其截断并在末尾添加“...”。无论方向如何,它都会显示更多文本,直到第二行结束,这是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"/>