Android Question How to do single layout for all screen sizes ?

kikloo

Member
Licensed User
Longtime User
Hi,

I have bought B4A some time back but I was not able to utilize it becuase i did'nt fully understand on how to create a single layout for all or most of the screen sizes ? I also tried to read startup guide several times but I really fail to understand.

I got my basic app. working but I got really let down when I tried the app on a different device which had a different screen size and my app. was showing really weirdly. So i stopped usinfg it and left the mobile development.

Now I see that B4A has advanced to new/better version, so my question is: is there anything in the software that will allow me to create design for any screensize or do i have to make layouts for each screensize ?

Thanks.
 

kikloo

Member
Licensed User
Longtime User
Hi Erel,

Thanks for the post, but I find it very difficult to understand. I am not an expert like you hence please do a thread in which you clearly show:

1. How to create a layout.
2. How to make it work for all screen sizes.

Right now in the post you gave above it just uses to use dip etc. and in a video it shows how to stretch etc. I just don't know how to do ? I followed your beginner guide its of not much help either. I made a tiny app as I need but I am really stuck with this different screen size issue as I do not find a solution meant for noob.

Thanks.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
There is no magic procedure doing this.
It depends on waht you want to display on a small screen and what you want to display on a big screen.
You should post your project as a zip file, with the concrete problem, so we could have a look at it.
 
Upvote 0

JTmartins

Active Member
Licensed User
Longtime User
Hi Kikloo,

I do understand you very well, as when I started using B4A I was also having problems understanding screen layouts.

Please do not quit. Actualy it is not very complicated, but as everything in life there is a learning curve. Read the tutorials, specialy dedicate sometime understanding the designer scripts, as they are a key element for success with diferent layouts.

When planning your app, plan carefully the screen layout and the user interface so that it becomes easier to manage whatever screen size the app is running in.

I still consider myself as a begginer, and everyday I learn by digging in this forum and reading , examining and playing with examples. I can assure you that currently you won't find better option than Basic 4 Android.

I managed to do a complete application for my company runing in several screen sizes. Once I understood how this android OS operates, suddenly everything started to make sense and productivity jumped to very high levels.

Practise, practise, practise

and place your doubts in the forum. This forum does work.
 
Upvote 0
Top