布局配置文件中: <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"
/>

本文介绍如何在布局配置文件中设置 TextView 的属性实现文本自动滚动效果,包括宽度、高度、文本内容、单行显示、跑马灯效果及无限重复等。
226

被折叠的 条评论
为什么被折叠?



