title: Android Spinner doesn't display items
body: <p>I had very simple xml:
      </p>
  
  <pre><code>    &lt;Spinner
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:id="@+id/spinner"
              android:layout_marginTop="15dp"&gt;
  
              &lt;/Spinner&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and simple java code (copied from android docs and little modified by stackoverflow answers):</p>
  
  <pre><code>    @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_onecarinfo, container, false);
          spinner = (Spinner) view.findViewById(R.id.spinner);
          buildCarsListState();
          return inflater.inflate(R.layout.fragment_onecarinfo, container, false);
      }
  
      //fill car numbers list and set them to spinner source
      private void buildCarsListState() {
          List&lt;String&gt; carNumbers = new ArrayList&lt;String&gt;();
  
          //test
          carNumbers.add("test1");
          carNumbers.add("test2");
  
  
  
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(
                  this.getActivity(), android.R.layout.simple_spinner_item, carNumbers);
          adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          spinner.setAdapter(adapter);
      }
  </code></pre>
  
  <p>But, when I start debug this idiot-like simplest example, my spinner is empty. 2 hours to find reason - I realy no idea...</p>
  
  <p>Help!</p>