The strange thing is that a 5.3 inch and a 10 inch screen with the same screen density (800x1250) have a compete different view of the layout.
I have a layout with a lot of 77x160dp icons. On the 5.3 inch screen is see 2.5 icons and on the 10 inch screen i see 5 icons next to each other (portrait mode) Why i do see only 2.5 icons on the 5.3 inch screen? Faust 2012/4/29 Mark Murphy <[email protected]> > On Sun, Apr 29, 2012 at 11:11 AM, Faust Nijhuis <[email protected]> > wrote: > > How can i detect the difference between 5 and 7 inch screen. > > Sinds 5.3 (Galaxy note) and 7 inch screen are both large screens and we > > can only use layout, layout-large and layout-xlarge. > > On Android 3.2 and higher, you can use resource set qualifiers like > -sw600dp to help create your own size-dependent buckets. > > Prior to Android 3.2, at runtime, you can probably attempt to use > screen density and resolution to try to derive the physical size and > choose different resources (by name) based on that calculation. > Accuracy of this approach is far from guaranteed, though. > > Personally, I would recommend you try to come up with a UI design that > works OK on both 5" and 7" -large tablets. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Training...At Your Office: http://commonsware.com/training > > -- > 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

