title: PopupWindow overlaps soft buttons on Android 5.0
body: <p>I have a simple <code>PopupWindow</code> that I create with the following code (the code is in C#, the Java code should be basically the same)</p>
  
  <pre><code>View popupView = LayoutInflater.From(this.Activity).Inflate(Resource.Layout.LectionFooter, null);
  
  var popup = new PopupWindow(popupView, ViewGroup.LayoutParams.MatchParent, 
      ViewGroup.LayoutParams.WrapContent, false)
  {
      OutsideTouchable = true,
      AnimationStyle = Resource.Style.FooterAnimation
  };
  
  popup.SetBackgroundDrawable(new BitmapDrawable());
  popup.ShowAtLocation(rootView, GravityFlags.Bottom, 0, 0);
  </code></pre>
  
  <p>On pre-Lollipop devices, this popup looks fine, but on Android 5.0, the popup overlaps the soft buttons:</p>
  
  <p><img src="https://i.stack.imgur.com/lbFgL.png" alt="PopupWindow Lollipop"></p>
  
  <p>Here's the <code>PopupWindow</code> on an Android 4.4 device:</p>
  
  <p><img src="https://i.stack.imgur.com/ywAoI.png" alt="enter image description here"></p>
  
  <p>Does anyone have an idea why this happens and how this can be fixed?</p>