Android之兑现textvew跑马灯效果

Android之实现textvew跑马灯效果!--android:singleLinetrue文字单独一行显示android:ellipsizemarqu

Android之实现textvew跑马灯效果
    <!-- 
      
        android:singleLine="true"  文字单独一行显示
        android:ellipsize="marquee"   表示跑马灯效果    其他属性 end   start  middle  表示省略号 在textview中显示的位置
        android:marqueeRepeatLimit="marquee_forever"  设定滚动的次数
        android:focusable="true"
        android:focusableInTouchMode="true" -->
    <TextView
        android:id="@+id/text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:singleLine="true"
        android:ellipsize="marquee"
        android:marqueeRepeatLimit="marquee_forever"
        android:focusable="true"
        android:focusableInTouchMode="true"
        />

这样设置好之后就能产生跑马灯的效果。

但是这样设置好之后TextView的超链接功能似乎不能用了。还在测试中。