title: Spinner getting the text fitting
body: <p>I have a Spinner and I want to fill this one with a currency array formatted like this:</p>
  
  <p>USD - United States Dollar</p>
  
  <p>This doesn't fit on a small screen, but it runs very ugly over the arrow of the spinner.</p>
  
  <p>Is there a way to only show the 3 letter code of the currency for example on the main layout-screen, but once clicked on the Spinner and the list opens there is the full name format as mentioned above. Or even better, only show the text that fits, but don't run over the drop down arrow?</p>
  
  <p>I now used substring to show only the first 3 characters, but this doesn't look so good (currencies hard to find).</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:</p>
  
  <p>I have the following layout:</p>
  
  <pre><code> &lt;Spinner
          android:id="@+id/currency"
          android:layout_width="wrap_content"
          android:layout_height="48dp"
           android:ellipsize="end"
          android:maxLines="1"
          android:paddingRight="8dp" /&gt;
  </code></pre>
  
  <p>And this is what I don't want:</p>
  
  <p><img src="https://i.stack.imgur.com/rD5oa.png" alt="Screenshot Spinner"></p>
  
  <p>As you can see the text from the South African Rand goes right through the arrow of the spinner.</p>