开发者

How do I pause autoscrolling of an Android application?

开发者 https://www.devze.com 2023-01-27 14:22 出处:网络
I have created this Android layout: This has a custom title bar and a TextView containing开发者_如何学编程 some sample text. The TextView is inside a ScrollView.

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

精彩评论

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