title: Android: Spinner text alignment to the right but not centered
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>I used the same approach mentioned here <a href="https://stackoverflow.com/questions/5755506/text-is-pushed-to-the-left-in-a-spinner-android">Android - Text is Pushed to the Left in a Spinner</a> but I set the gravity to right.</p>
  
  <p>Here is my spinner_item.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_height="?android:attr/listPreferredItemHeight"
      android:layout_width="fill_parent"
      android:gravity="right" /&gt;
  </code></pre>
  
  <p>Changed my code from </p>
  
  <pre><code>adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  </code></pre>
  
  <p>to this</p>
  
  <pre><code>adapter.setDropDownViewResource(R.layout.spinner_item);
  </code></pre>
  
  <p>I want my spinner to look like my old English spinner found below,</p>
  
  <p><img src="https://i.stack.imgur.com/Cnmzu.png" alt="English spinner"></p>
  
  <p>But it currently looks like this,</p>
  
  <p><img src="https://i.stack.imgur.com/1jhzd.png" alt="Arabic spinner"></p>
  
  <p>How can I restore the following:</p>
  
  <ol>
  <li>The radio button</li>
  <li>The bigger text size</li>
  <li>I want it to the right as shown but centered between the two dividers.</li>
  </ol>
  
  <p>NOTE The Arabic webservices aren't finished yet, that's why the data in the image is still in English.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>After trying Adil Soomro's suggestion, I get the following, </p>
  
  <p><img src="https://i.stack.imgur.com/t4db0.png" alt="Spinner semi-desired"></p>
  
  <p>There is no radiobutton and there is a considerable space between the border and the first letter. </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>After Adil Soomro's edit, I now have the following, </p>
  
  <p><img src="https://i.stack.imgur.com/CgKiR.png" alt="Spinner Arabic Fixed"></p>