title: Android Linkify both web and @mentions all in the same TextView
body: <p>Ok so I asked this yesterday:</p>
  
  <p><a href="https://stackoverflow.com/questions/4590384/autolink-mentions-in-a-twitter-client">AutoLink @mentions in a twitter client</a></p>
  
  <p>I got my @mentions linking correctly. But in order to get it to work I had to take android:autoLink="web" out my xml for the TextView. So now I get links to @mentions but it no longer links URLs. I tried doing two seperate Linkify.addLinks() calls like this:</p>
  
  <pre><code>mentionFilter = new TransformFilter() {
      public final String transformUrl(final Matcher match, String url) {
          return match.group(1);
      }
  };
  
  // Match @mentions and capture just the username portion of the text.
  //pattern = Pattern.compile("@([A-Za-z0-9_-]+)");
  pattern = Pattern.compile("(@[a-zA-Z0-9_]+)");
  scheme = "http://twitter.com/";
  
  tweetTxt = (TextView) v.findViewById(R.id.tweetTxt);
  
  
  Linkify.addLinks(tweetTxt, pattern, scheme, null, mentionFilter);
  Linkify.addLinks(tweetTxt, Linkify.WEB_URLS);
  </code></pre>
  
  <p>But which ever gets called last is the one that gets applied. Can anyone tell me how I can make it link both the @mentions and still autoLink the URLs?</p>
  
  <p>Edited to clarify some more of the code.</p>