<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
android:layout_width
=
"fill_parent"
android:layout_height
=
"fill_parent"
android:orientation
=
"vertical"
>
<
Button
android:id
=
"@+id/btn1"
android:layout_width
=
"100px"
android:layout_height
=
"wrap_content"
android:text
=
"0我最帅123456789"
android:singleLine
=
"true"
android:background
=
"#f0f"
/>
<
Button
android:layout_width
=
"100px"
android:layout_height
=
"wrap_content"
android:text
=
"01谢霆锋123456789"
android:singleLine
=
"true"
android:ellipsize
=
"none"
/>
<
Button
android:layout_width
=
"100px"
android:layout_height
=
"wrap_content"
android:text
=
"02陈.冠希123456789"
android:singleLine
=
"true"
android:ellipsize
=
"start"
/>
<
Button
android:layout_width
=
"100px"
android:layout_height
=
"wrap_content"
android:text
=
"03 王力宏123456789"
android:singleLine
=
"true"
android:ellipsize
=
"middle"
/>
<
Button
android:layout_width
=
"100px"
android:layout_height
=
"wrap_content"
android:text
=
"04 任贤齐123456789"
android:singleLine
=
"true"
android:ellipsize
=
"end"
/>
<
Button
android:id
=
"@+id/btn"
android:layout_width
=
"100px"
android:layout_height
=
"wrap_content"
android:text
=
"05 古天乐123456789"
android:singleLine
=
"true"
android:ellipsize
=
"marquee"
/>
</
LinearLayout
>