Nov 23, 2017 Replies: 9 Edit: Better to use CLVExpandable class: https://www.b4x.com/android/forum/t...g-or-collapsing-xcustomlistview-items.106148/ Compatible with B4A, B4J and B4i. This example uses a slightly modified version of xCustomListView 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. Dependencies: B4A: XUI, StringUtils, JavaObject B4J: XUI, JavaObject B4i: XUI Tips: - The order of items in the Item layout is important. pnlTitle should be the first item and the ImageView should be the second child: - The latest version is included in the B4A project. It is based on xCustomListView v1.65. The first line in the class: Code: Copy 'xCustomListView v1.65 - modified version to support expandable items The class is compatible with all three platforms. Last edited: May 26, 2019 Click to expand...
Edit: Better to use CLVExpandable class: https://www.b4x.com/android/forum/t...g-or-collapsing-xcustomlistview-items.106148/ Compatible with B4A, B4J and B4i. This example uses a slightly modified version of xCustomListView 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. Dependencies: B4A: XUI, StringUtils, JavaObject B4J: XUI, JavaObject B4i: XUI Tips: - The order of items in the Item layout is important. pnlTitle should be the first item and the ImageView should be the second child: - The latest version is included in the B4A project. It is based on xCustomListView v1.65. The first line in the class: Code: Copy 'xCustomListView v1.65 - modified version to support expandable items The class is compatible with all three platforms.
incendio Well-Known Member Licensed User Longtime User Nov 24, 2017 #2 Nice. Can I use this class with Scroll View in B4A?
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2017 #3 What do you mean with ScrollView? CustomListView is based on ScrollView.
ihabsharaf Member Licensed User Longtime User Dec 11, 2017 #4 HI can i use Expandable list inside Expandable list
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2017 #5 Technically you can. In most cases it is not recommended to put a scrollable view in another scrollable view. Try it.
Technically you can. In most cases it is not recommended to put a scrollable view in another scrollable view. Try it.
ihabsharaf Member Licensed User Longtime User Dec 26, 2017 #6 i try to use this code Code: Copy Dim r As Reflector r.Target = Cvr r.RunMethod2("setVerticalScrollBarEnabled", False, "java.lang.boolean") but not work with customelistview what the method for disable scroll bar in customelistview
i try to use this code Code: Copy Dim r As Reflector r.Target = Cvr r.RunMethod2("setVerticalScrollBarEnabled", False, "java.lang.boolean") but not work with customelistview what the method for disable scroll bar in customelistview
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2017 #7 Please start a new thread for this question.
hibrid0 Active Member Licensed User Longtime User Sep 8, 2018 #8 Hi, how can I get the events inside the item? I generate member button click event, but get the same click on all buttons.
Hi, how can I get the events inside the item? I generate member button click event, but get the same click on all buttons.
ihabsharaf Member Licensed User Longtime User Sep 8, 2018 #9 Code: Copy Sub Cmd_Add_Click Dim v As button v = Sender End Sub
Erel B4X founder Staff member Licensed User Longtime User Nov 12, 2018 #10 A new version based on xCustomListView 1.65 was released. It is included in the B4A project.