am 4609b0a8: am 3d8d9440: Merge "Fixes regarding densities in "Providing Resources" documentation page." into froyo

Merge commit '4609b0a8fcfbed9b893301232dfa3b70bb30e4e2' into gingerbread-plus-aosp

* commit '4609b0a8fcfbed9b893301232dfa3b70bb30e4e2':
  Fixes regarding densities in "Providing Resources" documentation page.
This commit is contained in:
Gilles Debunne
2010-07-30 11:56:36 -07:00
committed by Android Git Automerger

View File

@@ -450,8 +450,8 @@ application during runtime.</p>
to match the device density.</li> to match the device density.</li>
</ul> </ul>
<p><em>Added in API Level 4.</em></p> <p><em>Added in API Level 4.</em></p>
<p>There is thus a 4:3 scaling factor between each density, so a 9x9 bitmap <p>There is thus a 3:4:6 scaling ratio between the three densities, so a 9x9 bitmap
in ldpi is 12x12 in mdpi and 16x16 in hdpi.</p> in ldpi is 12x12 in mdpi and 18x18 in hdpi.</p>
<p>When Android selects which resource files to use, <p>When Android selects which resource files to use,
it handles screen density differently than the other qualifiers. it handles screen density differently than the other qualifiers.
In step 1 of <a href="#BestMatch">How Android finds the best In step 1 of <a href="#BestMatch">How Android finds the best
@@ -895,7 +895,7 @@ drawable-port-ldpi/
drawable-port-notouch-12key/ drawable-port-notouch-12key/
</pre> </pre>
<p class="note"><strong>Exception:</strong> Screen pixel density is the one qualifier that is not <p class="note"><strong>Exception:</strong> Screen pixel density is the one qualifier that is not
eliminated due to a contradiction. Even though the screen density of the device is mdpi, eliminated due to a contradiction. Even though the screen density of the device is hdpi,
<code>drawable-port-ldpi/</code> is not eliminated because every screen density is <code>drawable-port-ldpi/</code> is not eliminated because every screen density is
considered to be a match at this point. More information is available in the <a considered to be a match at this point. More information is available in the <a
href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
@@ -922,9 +922,8 @@ drawable-en-notouch-12key/
<strike>drawable-port-notouch-12key/</strike> <strike>drawable-port-notouch-12key/</strike>
</pre> </pre>
<p class="note"><strong>Exception:</strong> If the qualifier in question is screen pixel density, <p class="note"><strong>Exception:</strong> If the qualifier in question is screen pixel density,
Android Android selects the option that most closely matches the device screen density.
selects the option that most closely matches the device, and the selection process is complete. In general, Android prefers scaling down a larger original image to scaling up a smaller
In general, Android prefers scaling down a larger original image to scaling up a smaller
original image. See <a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple original image. See <a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
Screens</a>.</p> Screens</a>.</p>
</li> </li>