改正 跑马灯不跑
跑马灯的效果在xml上,大家都是一样的代码
android:singleLine="true"
android:marqueeRepeatLimit="marquee_forever"
android:ellipsize="marquee"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:focusable="true"
但是貌似有的人能跑,有的人的不会。自己的刚刚就不会。
在stackoverflow上看到一家伙的方法,TextView.setSelect(true);
我试了,这个方法有效!