的ellipsize
属性TextView
在设置后不再起作用autoLink="all"
。我的代码TextView
是:
<TextView
android:id="@+id/md_tv_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:autoLink="all"
android:drawablePadding="24dp"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="3"
android:text="www.google.com Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown p
rinter took a galley of type and scrambled it to make a type specimen book. It has survived not only five
centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popula
rised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently wi
th desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
android:textSize="14sp"
android:drawableLeft="@drawable/ic_info_grey" />