Howdy chaps and chapettes.
I may be having a blonde moment here, but here goes. Simple version:
I have an activity and on the activity I have a scrollview (100%x x 100%y) this is just a container to enable the other views to scroll. In code I load a layout (we'll call it layout1.bal) into the inner panel of the scrollview. Now, how do I size the inner panel to match the loaded layout.
Only ways I can think of it to put a dummy view in the layout and put it right at the bottom of layout then in code reference that views' position. Or iterate through the views of the inner panel and check which is furthest down. I feel sure there must be an easier way, but not touched b4a in a good while and I appear to have lost my touch....
Thanks
I may be having a blonde moment here, but here goes. Simple version:
I have an activity and on the activity I have a scrollview (100%x x 100%y) this is just a container to enable the other views to scroll. In code I load a layout (we'll call it layout1.bal) into the inner panel of the scrollview. Now, how do I size the inner panel to match the loaded layout.
Only ways I can think of it to put a dummy view in the layout and put it right at the bottom of layout then in code reference that views' position. Or iterate through the views of the inner panel and check which is furthest down. I feel sure there must be an easier way, but not touched b4a in a good while and I appear to have lost my touch....
Thanks