蹒跚走路的程序猿

2013年8月12日

Android TextView文字横向自动滚动(跑马灯)

摘要: TextView实现文字滚动需要以下几个要点: 1.文字长度长于可显示范围:android:singleLine="true" 2.设置可滚到,或显示样式:android:ellipsize="marquee" 3.自定义滚动的ScrollingTextView 1 public class ScrollingTextView extends TextView { 2 3 public ScrollingTextView(Context context, AttributeSet attrs, int defStyle) { 4 super(contex 阅读全文

posted @ 2013-08-12 14:56 蹒跚走路的程序猿 阅读(1320) 评论(0) 推荐(0) 编辑

导航