<TextView android:layout_height="wrap_content"
android:layout_width="200dip"
android:marqueeRepeatLimit="marquee_forever" //表示循环滚动
android:scrollHorizontally="true" //表示水平显示
android:focusableInTouchMode="true"
android:focusable="true">
android:layout_width="200dip"
android:text="I have a dream I have a dream I have a dream I have a dream"
android:singleLine="true" //表示单行显示
android:marqueeRepeatLimit="marquee_forever" //表示循环滚动
android:scrollHorizontally="true" //表示水平显示
android:focusableInTouchMode="true"
android:focusable="true">

本文探讨了在Android中使用TextView组件实现文本滚动显示的效果,包括设置文本为单行显示、循环滚动、水平显示以及焦点功能。
1412

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



