Android Question [SOLVED] SD XUIView2. Problem deleting an item. It doesn't remove the background panel..

javiers

Active Member
Licensed User
Longtime User
When you delete an item, the background panel is still drawn. Only modifying the size of the view recomposes it...
B4X:
Private Sub xGridListView1_ItemLongClick(Text As String,Value As Object)
    Log("Long or Right Click " & Value)
    xGridListView1.removeAt(xGridListView1.getIndexFromValue(Value))
End Sub


1710222996677.png
 
Solution
B4X:
Private Sub xGridListView1_ItemLongClick(Text As String,Value As Object)
    Log("Long or Right Click " & Value)
    xGridListView1.removeAt(xGridListView1.getIndexFromValue(Value))
    xGridListView1.Invalidate
End Sub

Star-Dust

Expert
Licensed User
Longtime User
B4X:
Private Sub xGridListView1_ItemLongClick(Text As String,Value As Object)
    Log("Long or Right Click " & Value)
    xGridListView1.removeAt(xGridListView1.getIndexFromValue(Value))
    xGridListView1.Invalidate
End Sub
 
Upvote 2
Solution

javiers

Active Member
Licensed User
Longtime User
B4X:
Private Sub xGridListView1_ItemLongClick(Text As String,Value As Object)
    Log("Long or Right Click " & Value)
    xGridListView1.removeAt(xGridListView1.getIndexFromValue(Value))
    xGridListView1.Invalidate
End Sub

Thank you! Works.
 
Upvote 0
Top