On Sun, Apr 29, 2012 at 11:11 AM, Faust Nijhuis <faustnijh...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en