Sunday, April 29, 2012

Re: [android-developers] how to detect difference between 5 and 7 inch screen

On Sun, Apr 29, 2012 at 2:10 PM, Faust Nijhuis <faustnijhuis@gmail.com> wrote:
> The strange thing is that a 5.3 inch and a 10 inch screen  with the
> same screen density (800x1250)

Those are not the same density. They are the same *resolution*.
Density is resolution divided by size.

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

Perhaps because 160dp will use more pixels on the 5" than on the 10",
because the density of the 5" is significantly higher.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment