Recently the company's project required a marquee effect, Marquee effect how to do it. But sometimes when the feeling is very simple with always forget, here to do some recording, while also providing convenience to others.
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="快讯,昨日清晨昨夜风,不到长城非好汉,哇啦啦啦啦啦啦啊啦啦啦阿联阿拉拉拉啊"
android:layout_marginTop="20dp"
android:singleLine="true"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"/>