开发者

How do I pause autoscrolling of an Android application?

I have created this Android layout:

How do I pause autoscrolling of an Android application?

This has a custom title bar and a TextView containing开发者_如何学编程 some sample text. The TextView is inside a ScrollView.

The 'start/stop' button is supposed to start and stop the text automatically scrolling.

I am using a Scroller object but I can't find a method to pause the scrolling. Does such a method exist or should I be using an alternative approach (and if so, what)?


Put speed = 0

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜