title: Android: How to set the maximum size of a Spinner?
body: <p>Here is my layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
            android:layout_width="fill_parent" android:id="@+id/LinearLayout01"
           android:layout_height="wrap_content"&gt;
  
      &lt;Spinner android:text="@+id/AutoCompleteTextView01"
                         android:id="@+id/Spinner01"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:width="130dp"&gt;&lt;/Spinner&gt;
      &lt;EditText android:layout_height="wrap_content"
                android:layout_width="wrap_content"
               android:id="@+id/Chapter" android:width="30dp"&gt;&lt;/EditText&gt;
      &lt;TextView android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/TextView01" android:text=":"&gt;&lt;/TextView&gt;
      &lt;EditText android:layout_height="wrap_content"
                android:layout_width="wrap_content" android:id="@+id/Verse"
                android:width="40dp"&gt;&lt;/EditText&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I inflate this layout as an AlertDialog's view. But when I pick a large element, the text fields get pushed out to the right. Is there any way to set the maximum size of the spinner so after choosing an element, it shortens the choice with an ellipsis ("...") or something?</p>