title: Concatenating Simple Text with Spannable Text
body: <p>I am having one static string and one dynamic and I am concatenating both the strings and setting into TextView.</p>
  
  <p>For example :</p>
  
  <pre><code>textview.setText(getString(R.string.status)+" "+setSpannableText(mlist.get(position).getStatus()));
  </code></pre>
  
  <p>setSpannableText Method :</p>
  
  <pre><code> private Spannable setSpannableText(String text) {
          Spannable wordtoSpan = new SpannableString(text);
  
          wordtoSpan.setSpan(new ForegroundColorSpan(Color.BLUE), 0, text.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
          return  wordtoSpan;
      }
  </code></pre>
  
  <p>Now the issue is when I dont concate the static string while setting text in TextView like :</p>
  
  <pre><code>textview.setText(setSpannableText(mlist.get(position).getStatus()));
  </code></pre>
  
  <p>The above line works properly.</p>
  
  <p>But when I do the below one it doesnt work :</p>
  
  <pre><code>textview.setText(getString(R.string.status)+" "+setSpannableText(mlist.get(position).getStatus()));
  </code></pre>
  
  <p>I am having 5 to 10 lines of this setting textview and each one is having different static string. </p>