Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure why this was downvoted. It's entirely true.

Think about button sizes. The iOS UI widgets are a specific physical size, optimized for the average human hand, which is then translated into pixels. Because all iOS devices have the exact same "pixel dimensions" (sure, there are four times as many now, but that doesn't matter much), supporting this is not a problem. The distance that the user will have to reach for a button and the dimensions of said button are physically identical on every single iPhone and iPod touch.

Android devices are many different sizes and shapes, so this sort of consistency is practically impossible (although I'd be really impressed if someone pulled it off, surely there's a way to get physical device dimensions in the Android SDK?).



> Android devices are many different sizes and shapes, so this sort of consistency is practically impossible

Instead of incorrect speculation, here are some facts:

https://plus.google.com/105051985738280261832/posts/AzwMc3pS...

> surely there's a way to get physical device dimensions in the Android SDK

Since Android 1.0. You get the x and y dpi which can then be multiplied by screen resolution.

http://developer.android.com/reference/android/util/DisplayM...

http://developer.android.com/reference/android/view/Display....


> Android devices are many different sizes and shapes, so this sort of consistency is practically impossible (although I'd be really impressed if someone pulled it off, surely there's a way to get physical device dimensions in the Android SDK?)

If you are interested in how this for Android, the android design sign on metrics has a good overview, particularly the section on 48dp rhythm: http://developer.android.com/design/style/metrics-grids.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: