title: How to differentiate a 16:9 display from a 18:9 one?
body: <p>In my Android App i use different Android Resource Directories to support multiple screen sizes and orientations.  So inside <code>res</code> i have a <code>layout</code> folder, a <code>layout-land</code> folder, a <code>layout-large</code> folder, a <code>layout-large-land</code> folder and so on. </p>
  
  <p>This approach worked perfectly for me until i tried installing my app in a newer phone that has a <code>18:9</code> display instead of a <code>16:9</code> one.</p>
  
  <p>This phone draws the resources from the <code>layout</code> and <code>layout-land</code> folders, meaning that it is getting registered as a "normal" screen.</p>
  
  <p>Moreover, if i try getting the screen size of this phone using the following piece of code,</p>
  
  <pre><code>int screenSize = getResources().getConfiguration().screenLayout &amp;
                  Configuration.SCREENLAYOUT_SIZE_MASK;
  
  
          switch(screenSize) {
              case Configuration.SCREENLAYOUT_SIZE_XLARGE:
                  Toast.makeText(this, "Extra Large Screen", Toast.LENGTH_LONG).show();
                  break;
              case Configuration.SCREENLAYOUT_SIZE_LARGE:
                  Toast.makeText(this, "Large Screen", Toast.LENGTH_LONG).show();
                  break;
              case Configuration.SCREENLAYOUT_SIZE_NORMAL:
                  Toast.makeText(this, "Normal Screen", Toast.LENGTH_LONG).show();
                  break;
              case Configuration.SCREENLAYOUT_SIZE_SMALL:
                  Toast.makeText(this, "Small Screen", Toast.LENGTH_LONG).show();
                  break;
              default:
                  Toast.makeText(this, "Screen size is neither xlarge, large, normal or small", Toast.LENGTH_LONG).show();
          }
  </code></pre>
  
  <p>then it once again gets registered as a normal screen. <strong>But so does the phone with the 16:9 display</strong>. Needless to say this creates small but noticeable differences in how the app looks on those two phones.</p>
  
  <p>So my question is, <strong>is there a way to differentiate those two displays?</strong></p>
  
  <p><strong>Note:</strong> I am aware that there are workarounds around this, like avoiding <code>dp</code> values altogether and just using weights but what i'd like to know is if there is an "official" or "advised" method to treat this case. Much like the <code>layout-land</code> folder for landscape orientation or <code>layout-xlarge</code> folder for extra large screen and so on.</p>
  
  <p>Thanks in advance.</p>