View Single Post
Old 10-18-2012, 12:57 PM   #94
5thWiggle
Benevolent Evil Lord
5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.5thWiggle ought to be getting tired of karma fortunes by now.
 
5thWiggle's Avatar
 
Posts: 1,475
Karma: 37077260
Join Date: Jan 2011
Location: Evil Canada (We all have goatees!)
Device: Galaxy Note 8.0, Galaxy Note, iPad Mini, PocketEdge(retired)
iOS and android aim for pretty much the same touch target size. iOS uses 44 x 44 pixels which works out to 0.27 square inches on a 163ppi screen. Android uses 48dp high x at least 48dp wide. Dp is:

Quote:
A virtual pixel unit that you should use when defining UI layout, to express layout dimensions or position in a density-independent way.
The density-independent pixel is equivalent to one physical pixel on a 160 dpi screen, which is the baseline density assumed by the system for a "medium" density screen. At runtime, the system transparently handles any scaling of the dp units, as necessary, based on the actual density of the screen in use. The conversion of dp units to screen pixels is simple: px = dp * (dpi / 160). For example, on a 240 dpi screen, 1 dp equals 1.5 physical pixels. You should always use dp units when defining your application's UI, to ensure proper display of your UI on screens with different densities.
so on a 160ppi screen, 48dp = 48pixels = 48*(1/160) = 0.3 square inches
on a 240ppi screen, 48dp = 48*1.5 pixels = 72pixels = 72*(1/240) = 0.3 square inches.
5thWiggle is offline   Reply With Quote