您的位置:首页 > 移动开发 > Android开发

android TextView跑马灯效果

2015-07-20 16:00 597 查看
在布局文件里就可以实现:

<TextView

android:id="@+id/text_id"

android:layout_marginLeft="100dp"

android:layout_marginRight="100dp"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="@string/hello_world"

//重要的是以下的程序

android:singleLine="true"

android:ellipsize="marquee"

android:focusable="true"

android:marqueeRepeatLimit="marquee_forever"

android:focusableInTouchMode="true"

/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: