<
TextView
android:id
=
"@+id/tv"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:maxEms
=
"18"
android:singleLine
=
"true"
android:ellipsize
=
"end"
/>
android:maxEms
=
"18",android:singleLine
=
"true",android:ellipsize
=
"end"就行了