The indexfromoffset method returns two different values dependent on where in the item you touch if the list is scrolled such that the first visible view is only partially visible.
Private Sub Overlay_Touch(ViewTag As Object, Action As Int, X As Float, Y As Float, MotionEvent As Object) As Boolean
Log("IndexFromOffset " & CustomListView1.FindIndexFromOffset(Y))
Return False
End Sub
The offset parameter is relative to the tall inner panel. The valid range of values goes from 0 to CustomListView1.sv.ScrollViewContentHeight.
Correct code:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.