title: getChildView (for BaseExpandableListAdapter) not working properly
body: <p>I have an <code>ExpandableListView</code>. The xml for the Child rows looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/list_item_child"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;EditText
              android:id="@+id/number_input_1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:ems="10"
              android:gravity="right"
              android:inputType="numberDecimal" &gt;
  
              &lt;requestFocus /&gt;
          &lt;/EditText&gt;
  
          &lt;Spinner
              android:id="@+id/spinner_1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="center"
          android:text="@string/temp_txt" /&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;EditText
              android:id="@+id/number_input_2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:ems="10"
              android:gravity="right"
              android:inputType="numberDecimal" /&gt;
  
          &lt;Spinner
              android:id="@+id/spinner_2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Basically, my <code>getChildView</code> looks like this:</p>
  
  <pre><code>public View getChildView(int i, int i1, boolean b, View view, ViewGroup viewGroup) {
  
      if (view == null) {
          view = inflater.inflate(R.layout.list_item_child, viewGroup, false);
      }      
      Spinner spinner = (Spinner) view.findViewById(R.id.spinner_1);
      spinner.setAdapter(mUnitsCA);
      spinner.setSelection(14);  // 14 is a test
      spinner.setOnItemSelectedListener(mSpinnerListener);
  
      return view;
  }
  </code></pre>
  
  <p>This should ensure that item number 14 in spinner_1 is selected every time. Some of the time this works, but often it selects the first item in the spinner instead. I can't work out where this is happening. Any ideas?</p>