我在同一个界面做了两个跑马灯 但是不能同时跑 谁能帮我解决哈啊具体代码如下<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" > <TextView
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:clickable="true"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:text="wEFSDCWAGSFDVawfedscWEFSDefsd" /> <TextView
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:clickable="true"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:text="ewagfsdwafsasfdesfdwefsddasdqefaczx" /></LinearLayout>
这就是布局文件中 main。xml的内容 其余的都没改过 怎么样让这两个跑马灯同时跑起来?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" > <TextView
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:clickable="true"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:text="wEFSDCWAGSFDVawfedscWEFSDefsd" /> <TextView
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:clickable="true"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:text="ewagfsdwafsasfdesfdwefsddasdqefaczx" /></LinearLayout>
这就是布局文件中 main。xml的内容 其余的都没改过 怎么样让这两个跑马灯同时跑起来?
解决方案 »
- anroid4.0 设置菜单settings如何删除条目屏幕锁定
- 请问下,android在反编译后如何值入广告的sdk?
- android射频参数
- webview 打开的子窗口不能用 window.close(); 关闭?
- 菜鸟求救 用android:background设置背景出错
- 关于adapter中getView()的复用
- android软件使用地图显示几个固定点和自己的位置(类似打车软件中的车和人的位置)怎么实现的
- WebView浏览web页面 无法记录用户浏览历史
- 求助微博授权认证的问题!跪谢啊
- 请问android怎样获取短信收件人的号码
- android入门,发现一个问题,终于解决
- 用apache的ant.jar在安卓上解zip压缩,pc运行没问题,但安卓上就报错,请帮忙!
http://blog.csdn.net/aminfo/article/details/7558550