<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--
省略效果:android:singleLine="true"(android:lines="1" 设置为单行)
省略号位置:android:ellipsize=""start end middle marquee(跑马灯)
android:focusable="true" 设置可以获取的焦点
android:focusableInTouchMode="true" 设置触摸时可以获取的焦点
android:marqueeRepeatLimit="marquee_forever"> 设置跑马灯重复次数
-->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize = "22sp"
android:textColor = "#00ffff"
android:lineSpacingMultiplier="5"
android:lineSpacingExtra="15sp"
android:text="@string/abc"
android:singleLine="true"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever">
</TextView>
</LinearLayout>