Android Question xcustomlistview scrolling to the end

yfleury

Active Member
Licensed User
Longtime User
B4X:
Sub Button1_Click
    CustomListView1.AddTextItem("Compteur " & compteur, 1)
    CustomListView1.ScrollToItem((CustomListView1.Size-1))
    compteur=compteur+1
End Sub

the last item is always hide. I have to scroll it manually to see last item. Is it way to show last item each time I add one?
 

Mahares

Expert
Licensed User
Longtime User
the last item is always hide. I have to scroll it manually to see last item
Bonjour Monsieur Fleury:
Use this. It will work for you:
B4X:
Sub Button1_Click
    clv1.AddTextItem("Compteur " & compteur, 1)
    Sleep(0)
    clv1.ScrollToItem(clv1.GetSize-1)
    compteur=compteur+1
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…