android - How to get the current Y offset of a ScrollView -


scrollview has method setting x , y scroll offset, no method getting current offset (all i'm interested y offset, since scrollview supports vertical scrolling). don't see method work in superclasses, , tried gettop() content view, zero. missing something?

call getscrolly() on scrollview. see here more details: http://developer.android.com/reference/android/view/view.html#getscrolly%28%29


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -