android - How to flush the shown text in marquee? -


i have created marquee text using textview in android. requirement flush shown text in marquee , append new text it. how flush shown text?

@hanry right think marquee if gains focus.. had problem earlier.. did replaced textview webview , used marquee tag make text scroll.

edit : response sangita

        webview = (webview) findviewbyid(r.id.webview);         webview.getsettings().setdefaultfontsize(26);         webview.setbackgroundcolor(r.color.black);         webview.setontouchlistener(new ontouchlistener() {               public boolean ontouch(view v, motionevent event) {                 //do actions here             }         });         string content = "marquee test";          string summary = "<html><font color='#fdb728' face='courier'><marquee behavior='scroll' direction='left' scrollamount=10>"                 + content + "</marquee></font></html>";         webview.loaddata(summary, "text/html", "utf-8"); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -