title: Android: MATCH_PARENT vs FLAG_FULLSCREEN
body: <p>What's the difference between <code>LayoutParams.MATCH_PARENT</code> and <code>LayoutParams.FLAG_FULLSCREEN</code>? while both give same result!</p>
  
  <p><code>ViewGroup.LayoutParams.MATCH_PARENT</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/h9sOA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h9sOA.png" alt="match_parent"></a></p>
  
  <p><code>WindowManager.LayoutParams.FLAG_FULLSCREEN</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/Kf9U2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kf9U2.png" alt="fullscreen"></a></p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>Dialog dialog = new Dialog(this, LayoutParams.MATCH_PARENT);
  Dialog dialog = new Dialog(this, WindowManager.LayoutParams.FLAG_FULLSCREEN));
  </code></pre>