Use string array to populate Spinner
<p>I'm in the rookie leagues when it comes to Android apps and am looking to populate a Spinner with an Array or strings (it's a converter app) below is an extract from my XML file and I'm looking to populate the the Spinner:</p>

<pre><code>......
&lt;string name="TemperatureString"&gt;Temperature&lt;/string&gt;
&lt;string name="WeightString"&gt;Weight&lt;/string&gt;
&lt;string name="VolumeString"&gt;Volume&lt;/string&gt;
&lt;string name="SpeedString"&gt;Speed&lt;/string&gt;
&lt;string name="LengthString"&gt;Length&lt;/string&gt;
&lt;string name="AreaString"&gt;Area&lt;/string&gt;
&lt;string name="EnergyString"&gt;Energy&lt;/string&gt;
&lt;string name="PresureString"&gt;Presure&lt;/string&gt;
&lt;string name="MemoryString"&gt;Memory&lt;/string&gt;

&lt;string-array name="Convert_Type"&gt;
    &lt;item&gt;@string/TemperatureString&lt;/item&gt;
    &lt;item&gt;@string/WeightString&lt;/item&gt;
    &lt;item&gt;@string/VolumeString&lt;/item&gt;
    &lt;item&gt;@string/SpeedString&lt;/item&gt;
    &lt;item&gt;@string/LengthString&lt;/item&gt;
    &lt;item&gt;@string/AreaString&lt;/item&gt;
    &lt;item&gt;@string/EnergyString&lt;/item&gt;
    &lt;item&gt;@string/PresureString&lt;/item&gt;
    &lt;item&gt;@string/MemoryString&lt;/item&gt;
&lt;/string-array&gt;
</code></pre>

<p></p>

<p>From this, I'm trying to populate my spinner (<code>@+id/MainSpinner</code>) - I'm not sure what I'm doing here but for the <code>activity_main.xml</code> I have the following:</p>

<pre><code>    &lt;Spinner
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:id="@+id/MainSpinner"
        tools:listitem="@layout/support_simple_spinner_dropdown_item"/&gt;
</code></pre>

<p>I know there's a way of doing this via Java but I'm even worse at Java! 
For this reason, I'd like to keep this within xml if possible.</p>

<p>Also, If someone can want's to point me towards links to bring on my Java and xml skills that would be great - I've started with Udacity and have found them good but there's a lot to take in for a non-IT graduate (I work in finance but find this kinda thing really interesting!)</p>

<p>Thanks in advance!</p>