title: Android OnLongClickListener strange / unreliable behaviour
body: <p>I'm currently fighting against the OnLongClickListener on Android Api Lvl 8.</p>
  
  <p>Take this code:</p>
  
  <pre><code>this.webView.setOnLongClickListener(new OnLongClickListener() {
      @Override
      public boolean onLongClick(View v) {
          System.out.println("long click");
          return true;
      }
  });
  </code></pre>
  
  <p>It works perfectly. I can press anywhere on the WebView and the event triggers every time.</p>
  
  <p>Now take a look at this one:</p>
  
  <pre><code>this.webView.setOnLongClickListener(new OnLongClickListener() {
      @Override
      public boolean onLongClick(View v) {
          final EditText editText = getUrlTextField();
  
          switch (editText.getVisibility()) {
          case View.VISIBLE:
              editText.setVisibility(View.GONE);
              return true;
          case View.GONE:
              editText.setVisibility(View.VISIBLE);
              return true;
          default:
              return false;
          }
      }
  });
  </code></pre>
  
  <p>Assuming the URL EditText components is currently visible, it gets gone from the display and should be shown again when another long click event is triggered.
  But if you run this, the event just works once (!) when one performs a long click on any position on the WebView. To make things complicated, the long click works again when it is performed on a link on the website...</p>
  
  <p>Can anyone explain if it is a bug in the sdk and/or if there is a mistake in my thinking how the OnLongClickListener is working?!? :/</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I've run now several different scenarios on a Nexus One and come to following conclussion: Changing the layout on runtime more or less kills the OnLongClickListener... I haven't found a way to get it work reliably at all...</p>
  
  <p>I would really appreciate if anyone could give me a hint... I'm at my wits end :(</p>