Im still confused over why widgets when set height 100% only show up on a fraction of the screen. Ive set the parent container to expand and I am still unable to have this display in all the screen. If i hardcode pixels then I can have a bigger map… Can someone please explain why expanding components is so odd?
Thank you for your response… I tried that. and it makes no change at all… I’m really having problems figuring out how to expand things in this UI designer its very inconsistent and unpredictable especially when putting things in fragments.
Been trying to figure this out for a couple of days,… im really having issues expanding things vertically.
Can anyone please tell me what is wrong with this xml?
Hi.
As I can see you create a fragment screen for displaying maps, could you please share an XML of the screen that uses this fragment? Do you expand the fragment in the screen? Which version of platform and maps addon do you use?
Hello and thank you for your reply. The page with the fragment is a simple one.
I believe there is a bug here… I copied the contents of the layout into a blank page and it works as expected. I reached the conclusion that the vertical expand % is being ignored if its inside a fragment.
There is no “fragmentContainer” just “fragment” on the container pallete.
This “hack” Works but its really producing an odd behavior on component visibility, size and borders.
Is there a better way to switch fragments on a container on demmand using buttons??
You probably need to expand your fragment vertically after you programmatically add it to the parent layout (if parent layout is a vbox or vertical groupBox). Otherwise fragment won’t take 100% of available space.
Thank you very much for your response Mr. Budarov.
I tried this and it doesn’t work. .the fragment does extend but the behavior of some widgets is weird if i use vbox… so far the groupbox has least issues.