How to position and size items on a window?
In the compass example shown in Chapter 7, Putting the Phone Gadgets to Good Use, the layout generated looked fine on the iPhone, but on Android the text was tiny. Why is that?
The display can often look wrong on Android if you have not coded with this platform in mind, and it depends on the Android device you run your code on. The problem is that there are so many different screen resolutions for Android, and not only that, but there are also different screen densities. This is a by-product of competing manufacturers being allowed to use the same operating system and each seeking their own competitive advantage. When creating a design for Android, you have to consider the following two things:
Screen resolutions: Phone screen resolutions that range from 200 x 320 to 720 x 1280 and beyond. Tablets also vary in resolution.
Screen densities: One manufacturer will want a small phone that crams lots onto the screen (high density), whereas another might...