concept pixel in category android

appears as: pixels, pixels, pixel
Android in Practice

This is an excerpt from Manning's book Android in Practice.

Note how the text of the title image gets blurry and loses proportion in landscape mode. The white dots turned into eggs! That’s because Android stretches the image to fill the screen in landscape mode, interpolating pixels until the image is the same size as its container. The result looks horrible, so what can we do to avoid this problem?

Figure 4.17. A line that’s 8 pixels long and 1 pixel high on a 3 dpi screen will be only half the height and length on a 6 dpi screen because a pixel occupies less physical space. Note that this example simplifies dots to pixels, which isn’t necessarily true.