Please don't use concrete screen sizes, as written in the documentation these are very strongly discouraged and deprecated:
http://developer.android.com/intl/de/guide/topics/resources/resources-i18n.html#AlternateResources There are many other configuration attributes for the screen that will allow your app to actually work well across all devices. On Wed, Jan 13, 2010 at 5:02 PM, yidongsoft <[email protected]> wrote: > I am writing layout file for Droid Milestone. I set the directory to > layout-854x480, but it doesn't work at all. I then use: > > // get the screen size > DisplayMetrics dm = new DisplayMetrics(); > getWindowManager().getDefaultDisplay().getMetrics(dm); > > Log.i("DDDD", dm.widthPixels+"x"+dm.heightPixels); > > to print the screen size and then get 569x320. I then change the > layout directory name to layout-569x320. Then the layout file works. I > have a G2 and know it's 480x320. And I see the MS screen contain more > pixel in wide direction. But can any one help and explain why? Thanks! > > p.s. I am using SDK 1.6, eclipse+adt > > eclipse Build id: 20090920-1017 > adt info: 0.9.5.v200911191123-20404 > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
-- 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

