title: Properly use SpinnerAdapter
body: <p>I'm trying to get my spinneradapter working. I get no error's but
  the spinner remains empty. I have read multiple tutorials but they aren't seem to work
  very well. I'm trying to turn every row in a specifik color, that's why I need the adapter.
  This is my code:</p>
  
  <pre><code>public class spinnerAdapter extends ArrayAdapter&lt;String&gt; implements
      SpinnerAdapter {
      Context context;
      ArrayList&lt;String&gt; dateArray;
  
  public spinnerAdapter(Context context, ArrayList&lt;String&gt;dateArray) {
      super(context, R.layout.ruilen2_spinner);
      this.context = context;
      this.dateArray = dateArray;
  }
  
  static class ViewHolder {
      public TextView textView;
      public TextView textView2;
  }
  @Override
  public View getDropDownView(int position, View view, ViewGroup parent) {
  
      View rowView = view;
      final ViewHolder holder;
  
      if (rowView == null) {
          LayoutInflater vi = (LayoutInflater) getContext().getSystemService(
                  Context.LAYOUT_INFLATER_SERVICE);
          rowView = vi.inflate(R.layout.ruilen2_spinner, null);
          holder = new ViewHolder();
          holder.textView = (TextView)rowView.findViewById(R.id.spinnerdate);
          //holder.textView2 = (TextView)rowView.findViewById(R.id.spinnerworkplace);
          rowView.setTag(holder);
      }
      else{
          holder = (ViewHolder) rowView.getTag();
      }
      holder.textView.setText(dateArray.get(position));
      return super.getDropDownView(
                position, rowView, parent);
  }
  }
  </code></pre>
  
  <p>Here's the code snippet where I call the class:</p>
  
  <pre><code>s.setAdapter(new spinnerAdapter(getParent(),namen));
  </code></pre>
  
  <p>And last but not least the XML:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="horizontal" android:background="@color/white"
  android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
  
  &lt;TextView android:layout_width="wrap_content"
      android:layout_height="wrap_content" android:id="@+id/spinnerdate"     android:textColor="@color/black"&gt;&lt;/TextView&gt;
  &lt;TextView android:layout_width="wrap_content"
      android:layout_height="wrap_content" android:id="@+id/spinnerworkplace"    android:textColor="@color/black"&gt;&lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>