我在同一个界面做了两个跑马灯 但是不能同时跑 谁能帮我解决哈啊具体代码如下<?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的内容 其余的都没改过 怎么样让这两个跑马灯同时跑起来?
解决方案 »
- android webview 应用启动太慢
- 如何实现类似Gallary应用中底部的Menubar弹出的菜单效果?
- updateViews.setTextViewText问题请教
- 请问有android的视频教程了吗?
- android 怎么用wifi发视频? 在线等待。。。急
- 请教HttpUrlConnection上传文件问题
- arcgis for android 如何实现离线地图加密功能
- 点击一个按钮触发另外一个功能怎么实现的?
- 无故报NullPointerException: println needs a message错误
- 求教,安卓平台上实现类似烧饼修改器的功能,该如何下手?
- android入门,发现一个问题,终于解决
- 用apache的ant.jar在安卓上解zip压缩,pc运行没问题,但安卓上就报错,请帮忙!
http://blog.csdn.net/aminfo/article/details/7558550