title: Putting screen densities into the correct bucket
body: <p>A set of six generalized densities:</p>
  
  <pre><code>ldpi (low) ~120dpi
  mdpi (medium) ~160dpi
  hdpi (high) ~240dpi
  xhdpi (extra-high) ~320dpi
  xxhdpi (extra-extra-high) ~480dpi
  xxxhdpi (extra-extra-extra-high) ~640dpi
  </code></pre>
  
  <p>From the wiki pages of each phone display</p>
  
  <p>Scaling down into the buckets i.e if the ppi is 300 that would go into the hdpi bucket as it less then 320?</p>
  
  <pre><code>Galaxy S3 306ppi -&gt; bucket hdpi
  Nexus 4  318ppi -&gt; bucket hdpi
  Nexus 5  445ppi -&gt; bucket xhdpi
  Nexus 5X 432ppi -&gt; bucket xhdpi
  Nexus 6  493ppi -&gt; bucket xxhdpi 
  Nexus 6P 518ppi -&gt; bucket xxhdpi
  </code></pre>
  
  <p>Is this the correct way to work out buckets for screen sizes.</p>
  
  <p>The reason I asked is because I have created the following value directory resources:</p>
  
  <pre><code>values-hdpi/dimens
  values-xhdpi/dimens
  values-xxhdpi/dimens
  values-xxxhdpi/dimens
  </code></pre>
  
  <p>In the <code>dimens.xml</code> I have different margins and set the dp depending on the bucket size i.e.</p>
  
  <pre><code>&lt;dimen name="network_quantity_margin_top"&gt;100dp&lt;/dimen&gt;
  </code></pre>
  
  <p>I am interested to know if this is the correct way to do this. </p>