title: android overlay picture not reaching top of screen
body: <p>I am trying to fit this overlay image to the very top of the screen:</p>
  
  <p><a href="https://i.stack.imgur.com/6eGeE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6eGeE.png" alt="enter image description here"></a></p>
  
  <p>This is my code for the overlay:</p>
  
  <pre><code>WindowManager.LayoutParams params = new WindowManager.LayoutParams(
              WindowManager.LayoutParams.WRAP_CONTENT,
              WindowManager.LayoutParams.WRAP_CONTENT,
              WindowManager.LayoutParams.TYPE_SYSTEM_ALERT,
              WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
                      WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
              PixelFormat.TRANSLUCENT);
      params.gravity = Gravity.LEFT | Gravity.TOP;
      params.x = 0;
      params.y = 0;
      wm.addView(overlayedButton, params);
  </code></pre>
  
  <p>Why is the picture not meeting the top of the screen? Thanks for any pointers!</p>
  
  <p>Here is the image of the sun:</p>
  
  <p><a href="https://i.stack.imgur.com/uNMFC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uNMFC.png" alt="enter image description here"></a></p>