Use string format arguments in Android layout xml file
<p>I have a string defined in my String.xml file that uses format arguments, i.e.:</p>

<pre><code>&lt;string name="myString"&gt;Hello %1$s.&lt;/string&gt;
</code></pre>

<p>Is there a way to assign a value to the format argument in a layout xml file?  I have something like:</p>

<pre><code>&lt;TextView android:text="@string/myString"/&gt;
</code></pre>

<p>I know I can do it in java, but is there a way to do it here?</p>

<p>Thanks!</p>
