0

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 -- News 3 -- news 4

How can i implement this?

Thanks in advance.

upv
  • 539
  • 5
  • 7
  • 15
  • tell me where did you want the marquee effect to be in your activity or web view? – Karthik Jun 09 '11 at 06:02
  • now i used a text view with horizontal scrolling. The problem is when a new content (news) arrives i just append it with previous contents. Doing so scrolling restart from the first news itself. I just want the scrolling to continue with new news appended at its end. – upv Jun 09 '11 at 06:34

2 Answers2

0

Maybe you would like reading this thread.

Regards, Stéphane

Community
  • 1
  • 1
Snicolas
  • 37,840
  • 15
  • 114
  • 173
0

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.

Siten
  • 4,515
  • 9
  • 39
  • 64
  • how can you say that he want the effect in web view it is also possible in activities too? – Karthik Jun 09 '11 at 06:01
  • @Karthik Marquee is welknown fetures as we use in HTML. generally it is use on web. and android gives this facility of webview and I think it suited better thats why i suggested. And This Marquee i had used in my development. – Siten Jun 09 '11 at 06:31