How to reverse the direction of marquee of a TextView

前端 未结 8 938
孤城傲影
孤城傲影 2020-11-30 05:16

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?

8条回答
  •  -上瘾入骨i
    2020-11-30 05:57

    Finally I found the BEST Solution here: https://github.com/Torob/MarqueeView

    to use this library:

    1. simply add this java file (MarqueeView.java) to your project java folder
    2. in your xml layout put your TextView inside of this MarqueeView like this:

         
         
         
      

提交回复
热议问题