R raistlin74 Member Licensed User Longtime User Mar 15, 2012 #1 Hi all, can someone help me to understand which components this screenshot is using? Thanks in advance, Fabio Attachments spinner.jpg 58 KB · Views: 400
Hi all, can someone help me to understand which components this screenshot is using? Thanks in advance, Fabio
thedesolatesoul Expert Licensed User Longtime User Mar 15, 2012 #2 This looks like a custom expandable listview. In B4A, you will have to use a scrollview with panels for this. I recently did something like an expandable listview but not with many progressbars etc. Upvote 0
This looks like a custom expandable listview. In B4A, you will have to use a scrollview with panels for this. I recently did something like an expandable listview but not with many progressbars etc.
R raistlin74 Member Licensed User Longtime User Mar 15, 2012 #3 Thanks for your reply. I really don't care about the progress bar I'm looking for the expandable listview. Do we have a lib for this or I have to do it from scratch? Thanks again Fabio Upvote 0
Thanks for your reply. I really don't care about the progress bar I'm looking for the expandable listview. Do we have a lib for this or I have to do it from scratch? Thanks again Fabio
thedesolatesoul Expert Licensed User Longtime User Mar 15, 2012 #4 You have two options. You can try and wrap and expandable listview (there are many on github) into a library, if you are good with java and know how to create xml layouts. If not, you will have to create it from scratch with a scrollview. To be honest it is not very hard to do it. You just need to correct structure. Code: Type ExpListViewItem(IsParent as Boolean, Expanded as Boolean, Pnl as Panel) Dim ExpandableList as List Dim SV as ScrollView Now you just need to create a panel programmatically with whatever you want(labels, progressbars etc) and add it to the ExpandableList. To Draw them create another sub: PopulateExpandableList(L as List, S as ScrollView) I will try to post a more detailed example when I get home. In the meantime someone else might have already posted something Upvote 0
You have two options. You can try and wrap and expandable listview (there are many on github) into a library, if you are good with java and know how to create xml layouts. If not, you will have to create it from scratch with a scrollview. To be honest it is not very hard to do it. You just need to correct structure. Code: Type ExpListViewItem(IsParent as Boolean, Expanded as Boolean, Pnl as Panel) Dim ExpandableList as List Dim SV as ScrollView Now you just need to create a panel programmatically with whatever you want(labels, progressbars etc) and add it to the ExpandableList. To Draw them create another sub: PopulateExpandableList(L as List, S as ScrollView) I will try to post a more detailed example when I get home. In the meantime someone else might have already posted something
R raistlin74 Member Licensed User Longtime User Mar 15, 2012 #5 Searching the forum just now (now that I know what to look for ) Thanks again Upvote 0
thedesolatesoul Expert Licensed User Longtime User Mar 15, 2012 #6 Here is a generic example for an expandable listview: http://www.b4x.com/forum/basic4andr...986-custom-expandable-listview.html#post90861 Upvote 0
Here is a generic example for an expandable listview: http://www.b4x.com/forum/basic4andr...986-custom-expandable-listview.html#post90861