Android Question How to set up basic app screen that scales?

Scotter

Active Member
Licensed User
I got into B4A over 2.5 years ago. Built a very simple app.
Didn't use B4A for over 2 years. Forgot much of the little I'd learned.
Never learned how to set up a screen so it would scale well to all Android devices.
It didn't seem easy. I don't expect easy, ha!
But, I will admit I'd like it to be as easy as possible.
I wonder two things:
- What changes have been made to the framework - if any - that make this creation process easier?
- Is there a tutorial that shows how to set this up? Using relevant features - if any - in the newest version of B4A?
Thank you!
 

npsonic

Active Member
Licensed User
You may want to start learning basics from booklets created by Erel.
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
i think you need minimum a phone and tablet variant in designer.
the sizes are in DIP (Density Independent Pixel).
it make no sense to scale a textbox 4x bigger if you can read it a 1x zoom.
it make also no sense to scale it smaller if the user can not read it any more.
most important are the anchors in design view.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You may want to start learning basics from booklets created by Erel.
Good advice, however the credit goes to Klaus.

I recommend you to watch the visual designer tutorial:


i think you need minimum a phone and tablet variant in designer.
Start with a single variant. In many cases it will be enough. The fewer variants the better.
 
Upvote 0
Top