title: pass value to string.xml value that have a link inside it
body: <p>I have this value in string.xml file:</p>
  
  <pre><code>&lt;string name="rights"&gt;Copyright © All Rights Reserved %1$d &lt;b&gt; &lt;a href="http://www.example.com/"&gt;company name&lt;/a&gt;&lt;/b&gt;&lt;/string&gt;
  </code></pre>
  
  <p>And I have applied this code that pass to the above text &amp; set that text to the <code>TextView</code></p>
  
  <pre><code>private void setupAppInfoRights() {
  
      int currentYear = Calendar.getInstance().get(Calendar.YEAR);
      String rights = String.format(new Locale("en"), getString(R.string.rights), currentYear);
      appInfoRights.setText(rights);
      appInfoRights.setMovementMethod(LinkMovementMethod.getInstance());
  
  }
  </code></pre>
  
  <p>When I remove the passed value everything goes fine &amp; when the user click on the company name it takes him/her to the company website.</p>
  
  <p>Please note that I have tried autoLink in xml when there is no value passed but it does not work as expected.</p>
  
  <p>But, when I add the passed value &amp; used the code above the company name has no underline &amp; when the user clicks it , it will do nothing.</p>
  
  <p>How to edit my above code to pass the current year &amp; keep the link behavior normal?</p>
  
  <p><strong>Note:</strong> I have used <code>String.format</code> to display the current year as English number always despite the other locale numbers.</p>