字体水平滚动
来源:互联网 发布:淘宝商品的拍摄技巧 编辑:程序博客网 时间:2024/05/18 00:14
1. 设定 TextView 的属性
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res/com.android.View.CustomView"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
- <TextView
- android:id="@+id/text"
- android:layout_width="100px"
- android:layout_height="wrap_content"
- //居中显示
- android:layout_centerInParent="true"
- //使得字不分行显示 否则当字太多会分行
- android:singleLine="true"
- android:layout_x="61px"
- android:layout_y="69px"
- //设置为"滚动"
- android:ellipsize="marquee"
- //设置滚动时间为永远 也可以为具体的int 来设置滚动次数
- android:marqueeRepeatLimit="marquee_forever"
- />
- </RelativeLayout>
2. 给 TextView 指定显示内容
- 字体水平滚动
- TEXTVIEW 字体水平滚动
- 字体水平滚动
- android组件TextView实现字体水平滚动
- Android组件TextView实现字体水平滚动
- 自定义 JS 水平滚动字体插件
- TextView 字体水平滚动,走马观灯 和 间距设置
- 水平滚动
- 图片水平滚动
- Datalist 水平滚动
- as3 水平滚动条
- Table水平滚动条
- Android 水平滚动
- 垂直水平滚动条
- android 水平滚动 HorizontalScrollView
- 文字水平左滚动
- 水平滚动代码
- 水平滚动的textview
- ubuntu 10.04软件源
- CListCtrl使用技巧(收藏)
- 桥接模式
- linux i2c驱动总结
- freepbx2.8 Custom Context 功能介绍
- 字体水平滚动
- 国外网站-Pattern Recogniton,机器学习等
- geteuid()和getuid()的区别
- LazyInstance
- 为什么C++编译器不能支持对模板的分离式编译
- 文字垂直滚动
- CImage
- VC++打包(InstallShield)
- c延迟1分钟