Detect last visible row of listview

fatman

Active Member
Licensed User
Longtime User
Hi Folks,

let´s say we have a listview which displays 5 lines of text. If the user taps on the last visible line i want to scroll up one line programatically.

Has anybody else encountered the same problem?

Thanx Fatman
 

klaus

Expert
Licensed User
Longtime User
You can't do it in a ListView, you could do it with a ScrollView.
In a ListView, as Margret already mentioned, you can set an item on top of the visible part.
B4X:
Sub ListView1_ItemClick (Position As Int, Value As Object)
    '
    '
    ListView1.SetSelection(Position)
End Sub
Best regards.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…