在我的應用程序中,我必須實現自動滾動文本視圖,我提到了this鏈接。在android中滾動Textview
現在我有一個根據我的要求滾動tetxview.But是,我有一個字符串數組(我已經解析了,我有一些字符串)..考慮該陣列可以
string[] array=new string{"fgsdfd","gdfghdjhsd","gdfjhsgfhds"};
現在我想這個數組將顯示在該文本視圖中(它將自動滾動)。
我想是這樣的:
fgsdfd gdfghdjhsd gdfjhsgfhds------------------>this will scroll automatically
這是我的TextView(滾動):
<TextView
android:text="Really Long Scrolling Text Goes Here.... ..... ............ .... ...."
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:id="@+id/TextView03"
android:padding="5dip"
android:layout_width="wrap_content"
android:textColor="#000000"
android:layout_height="wrap_content" />
如何設置字符串數組到tetxview..Please幫助我。
感謝您的回答.. – Subburaj