Introduction: https://www.b4x.com/android/forum/t...ue-irrespective-of-object-type.38136/#content
Activity is loading panels with some layout into a ScrollView, slow, one by one.
User can see the already loaded items and tap them to show an image.
If next he chooses the seeing item - it needs to show some tag label lblTag (blue tag with qty).
But loading is in progress and lblTag is ... turned out not the tapped item, but some next that loading this moment. But it was only one tap. And after all - the visible tag is on some next item.
Why ?
Activity is loading panels with some layout into a ScrollView, slow, one by one.
User can see the already loaded items and tap them to show an image.
If next he chooses the seeing item - it needs to show some tag label lblTag (blue tag with qty).
B4X:
Sub ivGood_Click
Dim v As ImageView = Sender
Dim p As Panel = v.Parent
lblTag = p.GetView(3) 'globally save the link to the view
Setup_Good
End Sub
But loading is in progress and lblTag is ... turned out not the tapped item, but some next that loading this moment. But it was only one tap. And after all - the visible tag is on some next item.
Why ?
Attachments
Last edited: