title: Android: Spinner selection aligned to the left
body: <p>I finished the English version of my application and now I am working on the Arabic localization. Arabic is a right-to-left language, so I need to adjust a lot of things in my layout, including my spinner display.</p>
  
  <p>When I choose an item from the spinner selection menu, I see the following, </p>
  
  <p><img src="https://i.stack.imgur.com/Lx9bp.png" alt="Spinner selection"></p>
  
  <p>As you can see "Allergy" is aligned to the left and on top of the spinner arrow. I need it to be aligned to the right. </p>
  
  <p><strong>NOTE</strong> The Arabic webservices aren't finished yet, that's why the data in the image is still in English.</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>Spinner mSpecialtySpinner = (Spinner) findViewById(R.id.specialty_appointment_spinner);
          ArrayAdapter&lt;Specialty&gt; adapter = new ArrayAdapter&lt;Specialty&gt;(AppointmentReservationActivity.this,android.R.layout.simple_spinner_item, specialities);
          adapter.setDropDownViewResource(R.layout.spinner_item);
          mSpecialtySpinner.setAdapter(adapter);
  </code></pre>