Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reverse the direction of marquee of a TextView

I want to reverse the direction of marquee in the TextView. By default, the text moves from Right to Left, I want it to move from Left to Right. How can I do this?

like image 907
Khawar Avatar asked Jul 15 '11 07:07

Khawar


1 Answers

Another simple way is using HTML and also you can change direction easily direction="Left"

<html><body><FONT COLOR="#000000" ><marquee id="mrqSlogan"  direction="Left" style="width: auto;" >text your</marquee></FONT></body></html>

And Pass to WebView

webView.loadDataWithBaseURL(null, yourhtmltext, "text/html" , null, null);
like image 136
Parag Chauhan Avatar answered Oct 29 '22 16:10

Parag Chauhan