读书人

跑马灯的有关问题

发布时间: 2012-07-03 13:37:43 作者: rapoo

跑马灯的问题
我在同一个界面做了两个跑马灯 但是不能同时跑 谁能帮我解决哈啊

具体代码如下

<?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的内容 其余的都没改过 怎么样让这两个跑马灯同时跑起来?

[解决办法]
实现多个跑马灯效果:
http://blog.csdn.net/aminfo/article/details/7558550

读书人网 >Android

热点推荐