Jul 9, 2017 Replies: 25 A cross platform version is available here: https://www.b4x.com/android/forum/t...g-or-collapsing-xcustomlistview-items.106148/ This example uses a slightly modified version of CustomListView to create an expandable list. Each item in the list is made of two panels. One for the title with the arrow and the other is the expanded panel. Note that the expanded items height can be different for different items. The example depends on AnimationPlus and StringUtils libraries. Last edited: Nov 8, 2020 Click to expand...
A cross platform version is available here: https://www.b4x.com/android/forum/t...g-or-collapsing-xcustomlistview-items.106148/ This example uses a slightly modified version of CustomListView to create an expandable list. Each item in the list is made of two panels. One for the title with the arrow and the other is the expanded panel. Note that the expanded items height can be different for different items. The example depends on AnimationPlus and StringUtils libraries.
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2017 #21 I plan to rewrite it based on xCustomListView. It will probably happen after B4J beta is released.
Alberto Iglesias Well-Known Member Licensed User Longtime User Nov 22, 2017 #22 OK Erel, perfect! This is the best platform ever.
Erel B4X founder Staff member Licensed User Longtime User Nov 23, 2017 #23 Alberto Iglesias said: Someone create this same expandable customlistview for B4i? Click to expand... Here: https://www.b4x.com/android/forum/t...t-based-on-xcustomlistview.86449/#post-547401
Alberto Iglesias said: Someone create this same expandable customlistview for B4i? Click to expand... Here: https://www.b4x.com/android/forum/t...t-based-on-xcustomlistview.86449/#post-547401
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2018 #24 You should always start a new thread for your questions. Also note that the latest version is: https://www.b4x.com/android/forum/t...t-based-on-xcustomlistview.86449/#post-547401
You should always start a new thread for your questions. Also note that the latest version is: https://www.b4x.com/android/forum/t...t-based-on-xcustomlistview.86449/#post-547401
M mohsen m New Member Sep 13, 2025 #25 Erel said: This code will collapse open items before a new one is expanded: Code: Copy Sub ExpandItem (index As Int) For i = 0 To clv1.GetSize - 1 Dim p As Panel = clv1.GetPanel(i) If p.Tag = True Then CollapseItem(i) Next clv1.ResizeItem(index, ExpandedHeight) clv1.GetPanel(index).Tag = True AnimatedArrow(index, 0, 180) End Sub Click to expand... Not work
Erel said: This code will collapse open items before a new one is expanded: Code: Copy Sub ExpandItem (index As Int) For i = 0 To clv1.GetSize - 1 Dim p As Panel = clv1.GetPanel(i) If p.Tag = True Then CollapseItem(i) Next clv1.ResizeItem(index, ExpandedHeight) clv1.GetPanel(index).Tag = True AnimatedArrow(index, 0, 180) End Sub Click to expand... Not work
LucaMs Expert Licensed User Longtime User Sep 14, 2025 #26 mohsen m said: Not work Click to expand... https://www.b4x.com/android/forum/t...ing-xcustomlistview-items.106148/post-1033684
mohsen m said: Not work Click to expand... https://www.b4x.com/android/forum/t...ing-xcustomlistview-items.106148/post-1033684