Java Question Help with a library

derez

Expert
Licensed User
Longtime User
I would like make a new library for a Treeview like this http://www.b4x.com/forum/basic4android-share-your-creations/8824-treeview.html#post49098 but with my knowledge at this time it seems an enormous effort (I can't even make the seekbar example run...).
So may be someone can build for me the framework with the main building block and I'll be able to continue.
The main building block of the treeview is an object which is a panel with two imageviews and a label. The library should be built with a scrollview, on which several objects of the above type will be mounted.
The combined panel should have two events - one is a click on the first imageview, the other a click on the label. Two tags are required as well to be able to attach data to the object.

Thanks !
 

thedesolatesoul

Expert
Licensed User
Longtime User
This is something I am interested in as well.

However I struggle with the following:
1. Should I create a brand new class with a static panel, or should I extend a panelwrapper and create my panels inside.
2. Events. Setting the listeners in initialize. But how to use events for innner views like the panels inside the scrollview.
3. The Layouts for inner panels. How do we define them and set them to expand to the width/height of the view.
 

derez

Expert
Licensed User
Longtime User
The Layouts for inner panels. How do we define them and set them to expand to the width/height of the view.
They should be under control of the user like in a listview - each of the elements should have its size and position methods, within its panel, while the parent panel need also to be positioned on the scrollview and not expanded automatically to the max size.
 

thedesolatesoul

Expert
Licensed User
Longtime User
Okay, so you want a fixed layout. (Might want to throw in a checkbox in there as well).
I was thinking of creating a layout in a panel, and replicating that across all the items in the view, but that will be more complicated.

Maybe the ListViewWrapper is the one to modify, but I dont understand setting the ListViewAdapter, and also how to hide certain panels/adapters.
 
Top