Sub btnDelete_Click
Dim index As Int = ads_clv.GetItemFromView(Sender)
Dim pnl As B4XView = ads_clv.GetPanel(index)
Dim innerPanel As B4XView = pnl.GetView(0)
Dim btn As B4XView
btn = innerPanel.GetView(2) 'ignore'
innerPanel.SetLayoutAnimated(100, -innerPanel.Width, innerPanel.Top, innerPanel.Width, innerPanel.Height) 'scrolls the card left out of the screen'
Sleep(100)
ads_clv.ScrollToItem(index+1) 'scrolls the clv to the item after the disappeard one'
Sleep(400) 'wait a bit to finish the animations'
ads_clv.RemoveAt(index) 'actually remove the item i scolled to the left'
ads_clv.JumpToItem(index) 'jump to the new index (so, the "index+1" of before)', with out this line, after the RemoveAt it shows the wrong one
If ads_clv.Size == 0 Then 'if the list is now empty
'do something'
End If
End Sub