If I´m allowed to make another question ...

Any ideas on how I could handle the different screen height/width
proportions (for example, the WVGA´s proportion is bigger than the HVGA
´s so a layout based on relativeLayout build up considering a HVGA
device will leave a lot of empty space in the bottom of a WVGA
device). That´s my main problem right now and to fix this I can only
think about creating a new layout for large/normal-hpdi devices, one
for normal-ldpi (if the one for the large screens doesn´t work here,
but I think this should work) and a last one for small-ldpi devices.

On 28 abr, 08:10, Mark Murphy <[email protected]> wrote:
> Gabriel Simões wrote:
> > In resume, should I have all those layouts to support all the
> > devices?
>
> > /res/layout-normal-mdpi
> > /res/layout-normal-hdpi
> > /res/layout-normal-ldpi
> > /res/layout-large-mdpi
> > /res/layout-small-ldpi
>
> That is impossible to answer in the abstract. For example, I have
> written production applications (under contract and NDA, natch) that
> have had just res/layout/ and have worked fine on all screen sizes.
>
> I serialized part of a chapter on this topic, from one of my books, on
> AndroidGuys, if it helps:
>
> http://www.androidguys.com/2010/02/16/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/02/18/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/02/23/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/03/01/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/03/02/handling-multiple-screen-sizes-...
>
> > Also, I couldn´t find in the link you´ve posted how to create and AVD
> > which simulates a Large Screen Medium Density device. Would it be a
> > WVGA skin, density = 160?
>
> Yes. The table on the Supporting Multiple Screens page shows how density
> and resolution give you size. WVGA by default comes up high density, and
> hence normal size. You can change the density in config.ini for the AVD
> to be medium density (160), which will give you a large size screen,
> since the resolution will not be changing.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in NYC: 4-6 June 2010:http://guruloft.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to