嗨,我需要添加一个连续滚动的文本视图到我的应用程序。
我需要从一个网站更新文本。
谁能告诉我任何教程,我可以找到这样做的代码。
提前感谢您的帮助。
发布于 2013-01-02 13:06:01
http://androidbears.stellarpc.net/?p=185
试试这个网站,它可能会很有用。
发布于 2012-12-28 17:28:20
使用以下命令:
<TextView
android:id="@+id/textId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:lines="1"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="Simple application that shows how to use marquee, with a long text"
android:textColor="#ff4500" />在活动中:
tv = (TextView) findViewById(R.id.textId);
tv.setSelected(true);谢谢。
https://stackoverflow.com/questions/14067294
复制相似问题