Android中TextView实现文字跑马灯效果(滚动轮播)
2017-03-15 22:26
1231 查看
效果图:
给TextView设置一些属性即可实现跑马灯的效果
完整Demo代码下载:http://pan.baidu.com/s/1boTwtx9
给TextView设置一些属性即可实现跑马灯的效果
<!--android:ellipsize="":定义跑马灯的效果, android:focusable="":聚焦功能 android:focusableInTouchMode="":在触屏手机,获取焦点 android:marqueeRepeatLimit="marquee_forever":字体永远滚动 android:singleLine="true":单行显示--> <TextView android:id="@+id/show_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:marqueeRepeatLimit="marquee_forever" android:singleLine="true" android:textSize="20dp"/>
完整Demo代码下载:http://pan.baidu.com/s/1boTwtx9
相关文章推荐
- 一分钟实现 Android textview 跑马灯文字滚动效果
- Android中继承TextView实现文字的跑马灯效果
- TextView实现跑马灯效果(文字滚动)
- Android TextView实现滚动跑马灯效果Marquee
- Android 如何实现TextView的跑马灯效果,即轮播
- Android中使用TextView实现文字跑马灯效果
- Android自定义textview实现竖直滚动跑马灯效果
- AndroidStudio——TextView文字左右滚动(跑马灯效果)无效解决办法
- android使用TextView实现文字的跑马灯效果
- Android----Android之TextView实现文字过长时省略部分或者滚动显示 (跑马灯)
- Android重写TextView实现文字跑马灯效果
- Android:TextView文字跑马灯的效果实现
- Android开发之TextView文字水平滚动效果实现
- Android TextView实现垂直滚动的跑马灯效果
- Android中TextView实现垂直滚动(轮换效果,非跑马灯)
- android TextView实现实现跑马灯效果,并监听滚动完成动作。
- Android之如何用TextView实现滚动字幕的效果【跑马灯】
- TextView文字横向滚动(跑马灯效果)
- Android之TextView实现文字过长时省略部分或者滚动显示
- 亲测Android TextView的文字滚动(marquee)效果