Creating a Spinner from an ArrayList<Object>
<p>I am wanting to create a Spinner from an ArrayList of Objects I have created and therefore when one is selected I can go back to that ArrayList and get the rest of the information from it</p>

<p>Example</p>

<pre><code>public class ObjectName {
    private int ID;
    private String name;
    private String name2;
    public ObjectName{int pID, String pName, String pName2) {
        ID = pID;
        name = pName;
        name2 = pName2;
    }
    //Getters Here
}
</code></pre>

<p>Example of Spinner Code</p>

<pre><code>ArrayList&lt;ObjectName&gt; objects = new ArrayList&lt;ObjectName&gt;;
ArrayAdapter&lt;ObjectName&gt; adapter = new ArrayAdapter&lt;ObjectName&gt;(this, android.R.layout.simple_spinner_item, objects);
</code></pre>

<p>Of course the Spinner does not show what I want. Is there an easy way to solve this</p>

<p>Thanks for your time</p>
