Android Question How to make my App fit all screen sizes for all Android mobiles?

IslamQabel

Active Member
Licensed User
Longtime User
I would like to ask ..............After designing my App....Should i design the layout size for the biggest size of screens ?

For example, designing the size of 10"......what will be for size 2.8" size?
desgining the size of 2.8".....what will be for size 10" size?

and should i use scroll view ?

Please advise me to design my App to be compatible with all sizes

Thanks
 

klaus

Expert
Licensed User
Longtime User
Upvote 0

DouglasNYoung

Active Member
Licensed User
Longtime User
IslamQabel,
Interesting that you suggest using a scrollview. Whilst Klaus gives a link to a page giving a solution, or many solutions, I have adopted the much simpler 'norm' of using ListViews for all menus - In particular I use a 'TwoLinesAndBitmap' for all menus - To me, it offers a simple, but efficient, way of offering auto-scaling menus, with some degree of configuration; They can have as many images as you require to indicate the function, the first line the main description of the menu item and the second line a little additional information - It may not be the most exciting way to present a menu but it works and it is simple to implement.
As ever, with Android, and B4A, there are many ways to implement menus and you have to work out how much effort you are prepared to put in to get the desired output.

Good luck,
Douglas
 
Upvote 0

IslamQabel

Active Member
Licensed User
Longtime User
Thanks Douglas...
Actually, I was thinking about using Scroll View....The idea is designing your App for Smallest size of screens and in the layout you adjust the dimensions of scroll view for the largest size of screens......I am imagining that when you use 2.8" phone ..you will use scroll to reach all objects in the screen.....and movement distance will be decreased as the size of screen increase....till No movement for 10" screen for example.......I did not try it but i will apply it..... but unfortunately, i have only 3.7" screen phone.......so Do you think that it good idea or not?
 
Upvote 0

DouglasNYoung

Active Member
Licensed User
Longtime User
IslamQabel,
Yes, on a small screen you might only see 5 menu entries and have to scroll for the rest, while on a big screen all might be visible. One of the reasons that I use this format is that it easily allows a dynamic menu system I.e. a user's most used menu items can be presented in priority.
I'll send you an email later with instructions on how to download one ofy apps.
Douglas
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Upvote 0

DouglasNYoung

Active Member
Licensed User
Longtime User
IslamQabel,
Dynamic Menus and ListViews work for me - Whether it is correct for you, only you can decide. Every member of this forum will, no doubt, have different thought how to do it - no one is right, just a possibility! I have started a conversation within this forum with further details as I couldn't find your email address.

Douglas
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…