title: Confusion in "smallest width dp" in Android
body: <p>I am learning how to use "smallest width dp" to support different screens using <a href="http://android-developers.blogspot.in/2011/07/new-tools-for-managing-screen-sizes.html" rel="nofollow">this</a> in android.</p>
  
  <p>i get that below number are the smallest of side of device in dp.</p>
  
  <blockquote>
    <p>Typical numbers for screen width dp are:</p>
    
    <p>320: a phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).</p>
    
    <p>480: a tweener tablet like the Streak (480x800 mdpi).</p>
    
    <p>600: a 7” tablet (600x1024).</p>
    
    <p>720: a 10” tablet (720x1280, 800x1280, etc).</p>
  </blockquote>
  
  <p>According to <a href="http://android-developers.blogspot.in/2014/10/getting-your-apps-ready-for-nexus-6-and.html" rel="nofollow">this</a> post nexus 6 has 730 x 410 dp.</p>
  
  <blockquote>
    <p>The Nexus 6 boasts an impressive 5.96” Quad HD screen display at a
    resolution of 2560 x 1440 (493 ppi). This translates to ~ 730 x 410 dp
    (density independent pixels).</p>
  </blockquote>
  
  <p>but as explained in <a href="http://developer.android.com/guide/practices/screens_support.html#overview" rel="nofollow">this</a> </p>
  
  <pre><code>           dp = (px/dpi)*160
                = (1440/493)*160
                = ~467
  </code></pre>
  
  <p>then how come this translates to 730 x <strong>410</strong> dp?
  further more when i run the demo in nexus 6, device is using padding dimension defined under res/values-sw320dp/dimens.xml</p>
  
  <p>this confuses me. how does one actually calculates dp and create view accordingly using "smallest width dp" ?</p>
  
  <p>apart from res/values-sw320dp i have res/value and res/values-sw600dp that has dimens.xml under it.</p>
  
  <p><strong>UPDATE</strong> figured out my confusion. check comment under question.</p>