title: Android - How to stop Linkify on Long-Press?
body: <p>I am working on my project where I have a listView and each item is a LinaerLayout that has a TextView with Linkify hyperlink.
  So, when I press the an item in the List view, it opens a dialog, which is fine.
  When I press the linked text in the listView, it opens a dialog, which is fine.
  PROBLEM: When I LONG-PRESS the linked text in the Listview, it opens a dialog AND an activity of the given link at the same time! In this case, I only want it to open the dialog only.
  In other words, I want to ignore Linkify's hyperlink on Long press.
  Does anyone know how I can do this?
  I don't know where to apply LongPress attributs... Thanks in advance.</p>
  
  <p>FYI, I tried the following but doesn't work.</p>
  
  <pre><code>public class URLSpanNoUnderline extends URLSpan implements OnLongClickListener {
      public URLSpanNoUnderline(String url) {
          super(url);
      }
  
      @Override
      public void updateDrawState(TextPaint textPaint) {
          super.updateDrawState(textPaint);
  
          textPaint.setUnderlineText(false);
      }
  
      @Override
      public void onClick(View v) {}
  
      @Override
      public boolean onLongClick(View v) {
          Log.d("log", "lonnnnnnnnnnnnnnnng click");
          return false;
      }
  }
  </code></pre>