title: how to return a arrayList from a spinner adapter
body: <p>I have the folloiwng spinner adapter for my customer spinner. In additon to different text for each item i hav different font and background colors. I dictate this by passing an <code>arrayList&lt;ArrayList&lt;String&gt;&gt;</code> which indicates the colors and text values for each item - inner arraylist reps an item.</p>
  
  <p>Now i want to get the selected items array list back to calling class by getting its id and pulling out the correct arrayList but im not sure how to construct this method's parameters. something like <code>spinner.getItemDetails_Arraylist(...);</code></p>
  
  <pre><code>public class SpinnerAdapter extends ArrayAdapter&lt;ArrayList&lt;String&gt;&gt;{ 
      ArrayList&lt;ArrayList&lt;String&gt;&gt; list = new ArrayList&lt;ArrayList&lt;String&gt;&gt;();
  
      private Context c;
      public SpinnerAdapter (Context context, int textViewResourceId, ArrayList&lt;ArrayList&lt;String&gt;&gt; objectList) {
          super(context, textViewResourceId, objectList);
          // TODO Auto-generated constructor stub
          this.c = context;
          this.list =objectList;
      }
  
      @Override
      public View getDropDownView(int position, View convertView,ViewGroup parent) {
          // TODO Auto-generated method stub
          return getCustomView(position, convertView, parent);
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          // TODO Auto-generated method stub
          return getCustomView(position, convertView, parent);
      }
  
      public View getCustomView(int position, View convertView, ViewGroup parent) {
          // TODO Auto-generated method stub
          //return super.getView(position, convertView, parent);
  
          LayoutInflater inflater=(LayoutInflater) c.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
          View row=inflater.inflate(R.layout.spinner_custom, parent, false);
          TextView textView_item=(TextView)row.findViewById(R.id.textView_teamName);
  
          //Pull team details from the object at position
          ArrayList&lt;String&gt; itemDetails = list.get(position);  
          String itemName = itemDetails.get(0);
          String itemAbbreviation = itemDetails.get(1);
          String iteme_primaryColor = itemDetails.get(2);
          String item_secondaryColor = itemDetails.get(3);
  
          //Update the spinner item controls
          textView_team.setText(teamName);
          textView_item.setBackgroundColor(Color.parseColor(item_primaryColor));
          textView_item.setTextColor(Color.parseColor(item_secondaryColor));
  
          return row;
      }
  }
  </code></pre>