title: Multi-Line Spinner Wont Work
body: <p>I have trying to get my multi-line spinner to work, thought I can not work out why it wont! (It just shows single line - so the text runs off the edge). I have read <a href="https://stackoverflow.com/questions/6107500/how-to-wrap-lengthy-text-in-a-spinner">this</a>, but still doesn't work.</p>
  
  <p>Here is my multi_line_spinner.xml file;</p>
  
  <pre><code>&lt;CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/text1"
      style="?android:attr/spinnerDropDownItemStyle"
      android:singleLine="false"
      android:layout_width="match_parent"
      android:layout_height="?android:attr/listPreferredItemHeight" /&gt;
  </code></pre>
  
  <p>And my activity (part) xml file;</p>
  
  <pre><code>    &lt;Spinner
          android:id="@+id/schoolSpinner"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10" /&gt;
  </code></pre>
  
  <p>And here is where I programmtically set the Spinner</p>
  
  <p>UPDATE: I get the data from an AsyncTask connecting to a remote server. (The data is successfully retrieved).</p>
  
  <pre><code>ArrayList&lt;String&gt; schoolName = new ArrayList&lt;String&gt;();
      getTTData task = new getTTData();
              task.execute("1");
          try {
              dataSchool = task.get();
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          } catch (ExecutionException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
          int x = 0;
          while(x&lt;dataSchool.size()-1)
          {
              schoolName.add(dataSchool.get(x));
              x++;
              schoolID.add(dataSchool.get(x));
              x++;
          }
  
  
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_dropdown_item, schoolName);
      adapter.setDropDownViewResource(R.layout.multi_line_spinner);
      schoolSpinner.setAdapter(adapter);
      schoolSpinner.setOnItemSelectedListener(this);
  </code></pre>
  
  <p>Where schoolName is an ArrayList of strings.
  Any help is much appreciated!</p>