在Android中运行字符串

Tim*_*ima 5 android textview

我不确定,如果"正在运行字符串"正确的名称.

我试着解释一下,我的意思.

我的布局中有一个TextView,并希望在那里有文本,它从rigth到左,再次,一次又一次地运行.

我thougt,我只是应该启用选框,但文本保持而不是运行:(

这是我的TextView代码:

<TextView
 android:id="@+id/text_ticker" 
 android:layout_width="fill_parent" 
 android:layout_height="wrap_content" 
 android:background="@color/grey0" 
 android:textColor="@color/black" 
 android:layout_marginLeft="5dp" 
 android:layout_marginRight="5dp" 
 android:layout_marginTop="5dp" 
 android:padding="10dp" 
 android:ellipsize="marquee"      
 android:marqueeRepeatLimit="marquee_forever"
 android:scrollHorizontally="true">
</TextView>
Run Code Online (Sandbox Code Playgroud)

谢谢,

穆尔

bli*_*uff 2

椭圆选框滚动仅在 textView 获得焦点时才会滚动。

编辑: 这是解决方案