2011-03-17 68 views

回答

0

我嘗試了所有的代碼,但我得到了最好的方式,我告訴你,這樣你可以得到的網頁流量的好成績。

WebView mWebView = (WebView) findViewById(R.id.webview); 
mWebView.getSettings().setJavaScriptEnabled(true); 

String summary = "<html><body><MARQUEE>"+tiker+"</MARQUEE></body></html>"; 

mWebView.loadData(summary, "text/html", "utf-8"); 

謝謝...幫助我。

0

將此添加到您使用的TextView的XML中。

android:singleLine="true" 
android:ellipsize="marquee" 
android:marqueeRepeatLimit ="marquee_forever" 
android:scrollHorizontally="true" 
android:focusable="true" 
android:focusableInTouchMode="true" 
+0

我應用它BT不起作用。實際上我想顯示股票信息作爲android中的選取框...但我從服務器獲得的字符串,它不工作字幕效果,只是顯示文本...我會做什麼? – Siten 2011-03-17 13:02:43

+0

作爲一個體驗TextView字幕是如此的錯誤 – hasan83 2013-10-24 13:57:29