有一个TextView,想让它的文字水平自动滚动,这个怎么做呢,请问?
网上找了很多,不过都不能动,就左右移动显示的哪种效果
网上找了很多,不过都不能动,就左右移动显示的哪种效果
解决方案 »
- 安卓4.0以上系统安装程序自动关闭
- NDK里打开/dev/graphics/fb0问题
- 如何在window的dos下安装apk到指定的avd上
- 人为控制activity的生命周期问题
- 如何动态改变界面上组件的大小???自定义类似“统计图”之类的view????
- android中的Factory函数是什么意思
- 禁用滚动条触摸事件
- 一个简单的从sudu actuvity跳转到aboutactivity,怎么在模拟器上运行老报错?
- Android Studio如何编写横屏的layout
- 请教!!!这个错误怎么解决啊
- win7系统上怎么用eclipse连接真机测试
- eclipse调试出现Source not found
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/arttile_text"
android:textColor="#000000"
android:textSize="16dip"
android:textStyle="bold"
android:scrollHorizontally="true"
android:marqueeRepeatLimit="marquee_forever"
android:ellipsize="marquee"
android:singleLine="true"
android:focusable="true"
android:focusableInTouchMode="true"
/>
自己项目中的一段
android:id="@+id/txtmsg"
android:layout_width="100px"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:ellipsize="marquee"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:text="文字跑马灯效果文字跑马灯效果文字跑马灯效果文字跑马灯效果"
>
</TextView>