Hi all,
I used ScrollChanged event to know when the ScrollView reachs the end but it seems ScrollChanged fired multiple times (or my code is wrong?).
I expected the message box will appears one by one after each time I scroll to the end of scroll view. But now it continually count "2", "3", "4"... when I scroll to the end of scroll view 1 time.
Please check the exported project to see the problem. Thank you.
I used ScrollChanged event to know when the ScrollView reachs the end but it seems ScrollChanged fired multiple times (or my code is wrong?).
B4X:
Sub sv_ScrollChanged(Position As Int)
If Position + sv.Height >= sv.Panel.Height Then
sv.ScrollPosition = Position - 100dip
numberoflastscroll = numberoflastscroll + 1
Msgbox(numberoflastscroll, "Number of last scroll action")
End If
End Sub
I expected the message box will appears one by one after each time I scroll to the end of scroll view. But now it continually count "2", "3", "4"... when I scroll to the end of scroll view 1 time.
Please check the exported project to see the problem. Thank you.