title: Why doesn't a PopupWindow whose layout is inflated from XML accept touch events?
body: <p>Given a <code>PopupWindow</code> defined like this:</p>
  
  <pre><code>public class MyWindow extends PopupWindow implements View.OnTouchListener {
      MyWindow(View view) {
          super(view);
  
          setHeight(view.getMeasuredHeight());
          setFocusable(true);
          setTouchable(true);
          setTouchInterceptor(this);
      }
  
      public boolean onTouch(View v, MotionEvent event) {
          System.out.println("onTouch()");
          return true;
      }
  }
  </code></pre>
  
  <p>for some reason, <code>onTouch()</code> is never called.</p>
  
  <p>What am I doing wrong?  How can I get the <code>PopupWindow</code> to accept touch events?</p>