<!--实现文本跑马灯的效果-->
<!--android:ellipsize="marquee":定义跑马灯的效果-->
<!--android:focusable="true":聚焦功能-->
<!--android:focusableInTouchMode:在触屏手机,获取焦点-->
<!--android:marqueeRepeatLimit="marquee_forever":字体永远滚动-->
TextView
app:layout_constraintTop_toBottomOf="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:singleLine="true"
android:text="写自己的字" />