Those resource qualifiers are available starting with Android 3.2, not 3.0:

http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

So, create your emulator to use the 3.2 runtime.

7 января 2012 г. 2:04 пользователь DanielleM <[email protected]>написал:

> Hello all:
>
> I was just wondering if anyone else has been having issues getting the
> Layout Manager in Eclipse to match up with the Android emulator? One
> thing to note is that in my experience it seems that the emulator does
> match real devices more so than the Eclipse Layout Manager.
>
> So my problem is, I've created a layout folder labeled "layout-
> sw720dp" so that I can create a layout for a 10" tablet. Then I've
> selected the "10.1 in (Tablet)" in the configuration options in the
> design view of the Layout Manager of Eclipse. I created my layout and
> everything looks perfect.
>
> Then I created an AVD that has the following properties: targets
> Android 3.0, uses the WXGA skin and has a dpi of 160. This "should"
> correspond to a 1280x800 160dpi screen as according to this page on
> the developers site:
>
> http://developer.android.com/guide/practices/screens_support.html#testing
>
> So based on these criteria, I would assume (I know that can be
> dangerous) that I would get output very close if not spot on to what I
> designed back in Eclipse. This is not the case however.
>
> One thing to note is that I also have a bunch of other layout folders
> such as "layout-large", "layout-normal", etc. Could these be
> interfering which each other possibly? The reason I ask is that it
> almost looks like it's using the layouts from the "layout-large"
> folder but I could be mistaken.
>
> Am I supposed to only use the new "layout-sw###" even though I'm
> technically targeting 2.2 and up for my app?
>
> Any help here would be much appreciated. I've been banging my head
> against the wall trying to get these layouts right.
>
> Thanks,
> Danielle M
>
> --
> 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

-- 
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