title: Changing Color Of TextView text in android using spannableString
body: <p>I have a String</p>
  
  <pre><code>1 Friend | O Reviews | 0 Coupons
  </code></pre>
  
  <p>I am using following code</p>
  
  <pre><code>SpannableString hashText = new SpannableString(TextUtils.concat(
                  friendsText,
                  " | ",
                  reviewsText,
                  " | ",
                  couponsText
          ).toString());
  
          Matcher matcher = Pattern.compile("\\s* | \\s*").matcher(hashText);
          while (matcher.find())
          {
              hashText.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.blue)), matcher.start(), matcher.end(), 0);
          }
  
          detailsText.setText(hashText);
  </code></pre>
  
  <p>I want to change the color of | to blue from TextView original gray color.
  Above code is doing nothing. What wrong am i doing in it.</p>