布局配置文件中:
<TextView
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:text="啊实打实大师打死打伤打死打伤打死打伤打死打伤打"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:focusable="true"
android:focusableInTouchMode="true"
/>