JAVA跑马灯实现1
2016-01-21 09:52
435 查看
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:singleLine="true"
android:focusableInTouchMode="true"
android:text="@string/hello_world" />
在string.xml文件中添加<string name="hello_world">我是一个TextView我是一个长TextView我是一个长TextView</string> 运行即可
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:focusable="true"
android:singleLine="true"
android:focusableInTouchMode="true"
android:text="@string/hello_world" />
在string.xml文件中添加<string name="hello_world">我是一个TextView我是一个长TextView我是一个长TextView</string> 运行即可
相关文章推荐
- java反射机制简介
- Learning Java(1)——安装&HelloWorld
- 深入理解Java内存模型(一)——基础
- Java中一些基本概念详解:栈、堆、对象大小、引用、传值(转)
- Java EE标准体系概述
- eclipse中设置字体为VC经典字体Fixedsys
- eclipse 正则批量查找与替换
- Exception in thread "main" java.lang.NoClassDefFoundError问题
- java数据库连接池
- java中的断言
- Java String类
- Java笔记16:多线程共享数据
- 使用Eclipse开发Android报错:Project has no target set. Edit the project properties to set one.
- Java反射机制基础详解
- struts.xml使用通配符
- Java--通过Java反射调用方法
- eclipse之The currrently displayed page contains invalid values错误
- ubuntu安装配置elasticSearch
- ubuntu安装配置elasticSearch
- struts2框架架构流程