Lines Matching full:code
55 <code>dp</code> or <code>sp</code> units. A <code>dp</code> is a density-independent pixel
56 that corresponds to the physical size of a pixel at 160 dpi. An <code>sp</code> is the same
61 <p>For example, when you specify spacing between two views, use <code>dp</code>
62 rather than <code>px</code>:</p>
71 <p>When specifying text size, always use <code>sp</code>:</p>
93 <li><code>xhdpi</code>: 2.0
94 <li><code>hdpi</code>: 1.5
95 <li><code>mdpi</code>: 1.0 (baseline)
96 <li><code>ldpi</code>: 0.75
99 <p>This means that if you generate a 200x200 image for <code>xhdpi</code>
100 devices, you should generate the same resource in 150x150 for <code>hdpi</code>,
101 100x100 for <code>mdpi</code> and finally a 75x75 image for <code>ldpi</code>
105 under <code>res/</code> and the system will pick the correct one automatically
121 <p>Then, any time you reference <code>@drawable/awesomeimage</code>, the system selects the