Hello everyone,
I sort of tried a way to build long layout and I like to know if this is a good way around the issue.
I made a main layout that contains just a CustomListView
then I made a longscreen layout that i removed the default variant and made a new one.
The new variant specs is 320 x 1200 ( W x H) and scale of 1 (160dpi)
and I got something like the image attached.
Then I loaded the layout in a panel and attached it to the CustomListView and I was able to get a long scrolling screen.
I tested on a portrait phone and a tablet (landscape) and it seems to work but I would like to know if this is a good way to implement long layouts?
Also for some reason I can't seem to figure out, on landscape mode, I had to add an additional 200dip to the height to make it scale properly.
I suspect the resizing of font and auto sizing but I am not sure.
The sample project is also attached.
Final B4A version here:
www.b4x.com
B4J version here:
www.b4x.com
I sort of tried a way to build long layout and I like to know if this is a good way around the issue.
I made a main layout that contains just a CustomListView
then I made a longscreen layout that i removed the default variant and made a new one.
The new variant specs is 320 x 1200 ( W x H) and scale of 1 (160dpi)
and I got something like the image attached.
Then I loaded the layout in a panel and attached it to the CustomListView and I was able to get a long scrolling screen.
I tested on a portrait phone and a tablet (landscape) and it seems to work but I would like to know if this is a good way to implement long layouts?
Also for some reason I can't seem to figure out, on landscape mode, I had to add an additional 200dip to the height to make it scale properly.
I suspect the resizing of font and auto sizing but I am not sure.
The sample project is also attached.
Final B4A version here:
How to design long layouts?
Hello everyone, I sort of tried a way to build long layout and I like to know if this is a good way around the issue. I made a main layout that contains just a CustomListView then I made a longscreen layout that i removed the default variant and made a new one. The new variant specs is 320 x...
B4J version here:
How to design long layouts in B4J?
Hello everyone, Recently, I asked about a way to build long, scrollable layouts in B4A and we were able to get it working there. Now, I am trying to implement the exact same concept in B4J, but I am running into a specific anchoring/resizing issue unique to desktop screens. I created two...
Attachments
Last edited: