开发者

setHorizontallyScrolling causes text to restart in TextView

开发者 https://www.devze.com 2023-04-07 05:38 出处:网络
I have added marquee effect in my TextView and appending text to this TextView at run time. After appending I call setHorizontallyScrolling to avoid text overwriting. But this call causes the text to

I have added marquee effect in my TextView and appending text to this TextView at run time. After appending I call setHorizontallyScrolling to avoid text overwriting. But this call causes the text to restart again. Is it possible to sto开发者_如何学JAVAp this restart and continue scrolling? Please help


I don't believe there is a solution that lets you change the value of the horizontallyScrolling attribute without resetting the marquee timer. You may have to set that value in your layout XML to true before you even start appending new text. If you do that then it SHOULDN'T reset when you just append text and should just continue scrolling.

0

精彩评论

暂无评论...
验证码 换一张
取 消