iOS Question How to prevent item to collapse?

watesoft

Active Member
Licensed User
Longtime User
I am using CLVExpandable class. When i click the blank of pnlExpanded panel(not the views on the panel). the item will collapse,this is easy to cause mishandling,how to prevent it?
 
Last edited:

watesoft

Active Member
Licensed User
Longtime User
You can handle the click event of the title panel and call ToggleItem from that event instead of clv_ItemClick. You can use clv.GetItemFromView to find the item index.
Erel,many thanks,now it prevent item to collapse when i click the blank.
B4X:
Sub pnlTitle_Click 
  expandable.ToggleItem(clv1.GetItemFromView(Sender))
End Sub
 
Upvote 0
Top