首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

跑马灯的有关问题

2012-07-03 
跑马灯的问题我在同一个界面做了两个跑马灯但是不能同时跑 谁能帮我解决哈啊具体代码如下?xml version1

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

具体代码如下

<?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

热点排行