iOS Question Custom ListView Problem

tzfpg

Active Member
Licensed User
Longtime User
I facing some problem with Custom ListView.
My Custom ListView get the data from server every 3 second and then it auto refresh.
The problem is every time refresh, the listview will auto point back to first rows
but i need to maintain to particular rows when i scroll it.
Here is my coding

B4X:
Sub PrintTable(result As List)
    clv1.Clear
        Dim record,loc As String
        For i = 0 To result.Size/3 - 1 
            record = result.get(i*3)
            loc=result.get(i*3+1)
            'sts=result.get(i*3+2)
           
                       
            Dim count As Int = i + 1
            Dim result1 As String = count & ") " & record & " - " & loc            
            clv1.AddTextItem(result1,record & "-" & loc)
        Next
    Log(Name_door)
End Sub

How can i solve this problem. Thanks
 
Top