I've made some small changes to the expandable list tutorial code so that I could achieve a simple task: delete the most recently expanded item.
Unfortunately the item(s) below the deleted item wouldn't move up to occupy the entire space freed, just the collapsed item height instead. The attached screenshot shows what the screen looks like after item 3 was deleted.
What am I missing? sample code also attached.
Thank you very much in advance for your helps!
Season's greetings!
toby
Unfortunately the item(s) below the deleted item wouldn't move up to occupy the entire space freed, just the collapsed item height instead. The attached screenshot shows what the screen looks like after item 3 was deleted.
B4X:
Sub Button1_Click
Log("Number of items before: " & clv1.Size)
clv1.RemoveAt(ExpandedIndex) 'ExpandedIndex keeps track of most recently expanded item
Log("Number of items after: " & clv1.Size)
End Sub
What am I missing? sample code also attached.
Thank you very much in advance for your helps!
Season's greetings!
toby