title: PopupView not showing up?
body: <p>Here's the XML (just a webview):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/couponView" android:layout_height="100dp" android:layout_width="100dp" /&gt;
  </code></pre>
  
  <p>and the code:</p>
  
  <pre><code>final View cView = getLayoutInflater().inflate(R.layout.couponlayout, null);
  PopupWindow pw = new PopupWindow(cView);
  pw.showAtLocation(findViewById(R.id.mainLayout), Gravity.CENTER, 100, 100);
  pw.update();
  </code></pre>
  
  <p>This is in a button.onClick() method. When I click the button, the rest of the things that should happen (button changes color, text, etc.), but the PopupWindow doesn't show up. I've been combing the web but can't find any fixes. What am I doing wrong?</p>
  
  <p>edit: no one knows whats going on? I feel like this is a common problem.</p>