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"
/>
<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"
/>
相关文章推荐
- ArcGIS Runtime SDK For Android 授权方法(去除水印)
- ArcGIS for Android开发之MapView控件篇
- Android 5.0 Contacts源码分析
- Android NDK之Hello NDK
- javascript调用android代码
- Android.mk详解
- Android ADB server didn't ACK * failed to start daemon * 简单有效的解决方案
- 学习开发新浪微博android客户端的一些事儿---刷新微博与加载更多微博
- Android Service 服务(三)—— bindService与remoteService
- android四大组件(详细总结)
- Android开发学习笔记:手机震动控制浅析
- 通过浏览器直接打开Android应用程序
- Android Service 服务(二)—— BroadcastReceiver
- Android中播放本地SD卡中歌曲需要的添加的权限
- android的布局属性详解
- ListView去掉或者修改默认点击背景
- Android基础_页面布局_LinearLayout(线性布局)
- Android中JNI的使用方法
- Couldn't resolve resource android studio
- Android_关于Toast重复显示解决方法