M MattC Member Licensed User Longtime User Nov 8, 2016 #1 I'm using the custom list view class to display data. The data displayed is a summary of other fields (streets made up of houses). I'd like to enable the user to click on a street and display the individual houses that make up the street. I'd like something like a treeview that can display fields because it's intuitive and familiar. Best I can come up with is a CLV with indented fields for the streets when the user wants to see them. Street -house1 -house2 Not so much looking for code as the general method for making this intuitive like a treeview and display data like the custom list view.
I'm using the custom list view class to display data. The data displayed is a summary of other fields (streets made up of houses). I'd like to enable the user to click on a street and display the individual houses that make up the street. I'd like something like a treeview that can display fields because it's intuitive and familiar. Best I can come up with is a CLV with indented fields for the streets when the user wants to see them. Street -house1 -house2 Not so much looking for code as the general method for making this intuitive like a treeview and display data like the custom list view.
Erel B4X founder Staff member Licensed User Longtime User Nov 8, 2016 #2 Have you seen this class: https://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/#content Upvote 0
Have you seen this class: https://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/#content
M MattC Member Licensed User Longtime User Nov 8, 2016 #3 Erel said: Have you seen this class: https://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/#content Click to expand... Thanks, yes, I should have been clearer, each house has other data on the same line So: Smith St -Number 1, 4 occupants, 1 car -Number 2, 2 occupants, 2 car This becomes a mess if i just use text as the columns don't line up Upvote 0
Erel said: Have you seen this class: https://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/#content Click to expand... Thanks, yes, I should have been clearer, each house has other data on the same line So: Smith St -Number 1, 4 occupants, 1 car -Number 2, 2 occupants, 2 car This becomes a mess if i just use text as the columns don't line up
J John Sturt Active Member Licensed User Longtime User Nov 8, 2016 #4 Hi So you want to use text and gfx on the same line? You could use Scrollview this way you can add any view i.e label,bitmap,imageviewat any position and then scroll freely throughout the lot of them. Hope this helps. Upvote 0
Hi So you want to use text and gfx on the same line? You could use Scrollview this way you can add any view i.e label,bitmap,imageviewat any position and then scroll freely throughout the lot of them. Hope this helps.
LucaMs Expert Licensed User Longtime User Nov 8, 2016 #5 https://www.b4x.com/android/forum/threads/class-checklist.18853/ with collapsible items? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 8, 2016 #6 John Sturt said: You could use Scrollview this way you can add any view Click to expand... CustomListView is based on ScrollView. Upvote 0
John Sturt said: You could use Scrollview this way you can add any view Click to expand... CustomListView is based on ScrollView.
M MattC Member Licensed User Longtime User Nov 8, 2016 #7 LucaMs said: https://www.b4x.com/android/forum/threads/class-checklist.18853/ with collapsible items? Click to expand... This looks promising, I'll have a poke around. Thanks guys Upvote 0
LucaMs said: https://www.b4x.com/android/forum/threads/class-checklist.18853/ with collapsible items? Click to expand... This looks promising, I'll have a poke around. Thanks guys