I have some problems with the marquee-feature of TextViews. I want to have a scrolling newsticker like this:
News 1 -- News 2 -- News 3
When a new news enters it must append with previous one as below,
News 1 -- News 2 -- Ne开发者_运维技巧ws 3 -- news 4
How can i implement this?
Thanks in advance.
Maybe you would like reading this thread.
Regards, Stéphane
Take a webview in xml. from code you declare the webview. In that webview..
WebView mWebView = (WebView) findViewById(R.id.webview); mWebView.getSettings().setJavaScriptEnabled(true);
String summary = ""+your data+"";
mWebView.loadData(summary, "text/html", "utf-8");
it will help you.
精彩评论