textview跑马灯

 1  <TextView
 2                     android:id="@+id/tv_home_index_textad"
 3                     android:layout_width="wrap_content"
 4                     android:layout_height="wrap_content"
 5                     android:layout_marginLeft="5dp"
 6                     android:layout_marginRight="5dp"
 7                   @  android:ellipsize="marquee"     
 8                   @  android:marqueeRepeatLimit="marquee_forever"  
 9                   @  android:singleLine="true"
10                     android:textColor="#ff000000"
11                     android:textSize="13sp" >
tvTextad.setSelected(true);

 

posted @ 2013-10-16 13:31  莲花味精  阅读(87)  评论(0编辑  收藏  举报