H heldenssjoerd Member Mar 7, 2024 #1 Context: In our app we're using an list where is shown information about a shipment. So you've got some load- and unload info and shipmentlines with the cargo information. We've a CustomListView where every line has some labels and then an CustomListView with the cargolines The build up in the designer is as follow: CustomListView Panel load address (label) unload address (label) shipmentlines (Customlistview - oCLV_Regels) Panel amount (possible multiline label) weight (possible multiline label) The problem is that we can't get the latest (bold) custumlistview to work. I've created a small example (based on the nestedclv) but that doesn't work ether. Two problems. 1. Not all lines ar visible, only the first one 2. How/where should I resize the oCLV_Regels so all the lines are visible. Attachments 1.zip 1.zip 12.1 KB · Views: 362
Context: In our app we're using an list where is shown information about a shipment. So you've got some load- and unload info and shipmentlines with the cargo information. We've a CustomListView where every line has some labels and then an CustomListView with the cargolines The build up in the designer is as follow: CustomListView Panel load address (label) unload address (label) shipmentlines (Customlistview - oCLV_Regels) Panel amount (possible multiline label) weight (possible multiline label) The problem is that we can't get the latest (bold) custumlistview to work. I've created a small example (based on the nestedclv) but that doesn't work ether. Two problems. 1. Not all lines ar visible, only the first one 2. How/where should I resize the oCLV_Regels so all the lines are visible.
P PaulMeuris Well-Known Member Licensed User Mar 8, 2024 #2 You are trying to use the CLVNested example but there is no CLVNested class in your project (1.zip). The example uses text items. You need to create a layout for the main clv items and for the inner clv items. Then use the layouts to fill the main clv and the inner clvs. Upvote 0
You are trying to use the CLVNested example but there is no CLVNested class in your project (1.zip). The example uses text items. You need to create a layout for the main clv items and for the inner clv items. Then use the layouts to fill the main clv and the inner clvs.
P PaulMeuris Well-Known Member Licensed User Mar 8, 2024 #3 This is how it could look like using custom item layouts with panels and labels. The source code is in the attachment. Note: both custom listviews are scrollable. Attachments clvnested_example.zip clvnested_example.zip 15.2 KB · Views: 399 Upvote 0
This is how it could look like using custom item layouts with panels and labels. The source code is in the attachment. Note: both custom listviews are scrollable.
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2024 #5 Another option: https://www.b4x.com/android/forum/threads/b4x-clvtree-tree-view.132472/#content Upvote 0