tags:

views:

36

answers:

1

ScrollView has a method for setting the x and y scroll offset, but no method for getting the current offset (all I'm really interested is the y offset, since ScrollView only supports vertical scrolling). I don't see any method that would work in the superclasses, and tried getTop() for the content view, which is always zero. Am I missing something?

A: 

What about: computeHorizontalScrollOffset() and computeVerticalScrollOffset().

Cristian