title: how can i implement a loop in XML file
body: <p><code>$</code>
  </p>
  
  <pre><code>&lt;string name="app_name"&gt;demoMark&lt;/string&gt;
  &lt;string name="action_settings"&gt;Settings&lt;/string&gt;
  &lt;string name="hello_world"&gt;Hello world!&lt;/string&gt;
  &lt;string name="spinner_header"&gt;Group Mate&lt;/string&gt;
  &lt;string-array name="demo_name"&gt;
      &lt;item&gt;Product Amount&lt;/item&gt;
      &lt;item&gt;1&lt;/item&gt;
      &lt;item&gt;2&lt;/item&gt;
      &lt;item&gt;3&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p> <code>$</code></p>
  
  <p><code>ArrayAdapter&lt;CharSequence&gt; adapteradapter = ArrayAdapter.createFromResource(this,
      R.array.demo_name, android.R.layout.simple_spinner_item);
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      itemAmount.setAdapter(adapter);</code></p>
  
  <p><img src="https://i.stack.imgur.com/VZbA8.png" alt="here is the screenshot with arrayadapter">
  <img src="https://i.stack.imgur.com/HnvIY.png" alt="here is the screenshot"></p>
  
  <p>Is there anyway that i can implement a loop in the string array in the <code>String.XML</code> ?
  it will be so helpful if anyone help me out with this.</p>