Android Studio中实现跑马灯效果
2016-11-12
在Android Studio中若想实现跑马灯效果,只需要添加以下的绿色代码:
<TextView android:layout_width="match_parent" android:layout_height="match_parent" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:singleLine="true" android:text="最新的手机卫士,快来下载,下载送大礼包!最新的手机卫士,快来下载,下载送大礼包!最新的手机卫士,快来下载,下载送大礼包!" />
本人已经过测试,效果正常显示。若有疑问,请及时提出,若对您有所帮助,请点个赞,谢谢!