title: Customize the spinner in Android is giving space issue
body: <p>I have customize the background of the spinner. I have removed the background and showing a spinner down arrow beside that. But if the text are not properly aligned. The bigger length text is showing in complete area but for smaller text, there is a gap coming for text and arrow. I have used the below code:</p>
  
  <pre><code>&lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="20dp"
              android:layout_marginRight="20dp"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/txtSelectVehins"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentLeft="true"
                  android:layout_marginTop="30dp"
                  android:text="Select Vehicle"
                  android:textColor="#F8F1F1"
                  android:textStyle="bold" /&gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="30dp"
                  android:layout_toRightOf="@id/txtSelectVehins" &gt;
  
                  &lt;Spinner
                      android:id="@+id/sp_veh_insrenew"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_alignParentRight="true"
                      android:background="@null"
                      android:drawSelectorOnTop="true"
                      android:minHeight="0dp"
                      android:spinnerMode="dropdown"
                      android:textSize="16sp" /&gt;
  
                  &lt;ImageView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_alignParentRight="true"
                      android:src="@drawable/dropdownarrow" /&gt;
              &lt;/RelativeLayout&gt;
          &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The whole alignment i want to put rightly aligned. I have attached the screen shot here:</p>
  
  <p><img src="https://i.stack.imgur.com/9xNxM.jpg" alt="enter image description here"></p>
  
  <p>Please help me to fix this.</p>
  
  <p>Here is my adapter to the spinner:</p>
  
  <pre><code> editStateAdapter = new ArrayAdapter&lt;String&gt;(EditStateCity.this, R.layout.spinner_item, Constants.stateList);
                    editStateAdapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item);
                    mSpEditState.setAdapter(editStateAdapter);
  </code></pre>
  
  <p>And here is the custom layout for the spinner text:</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_width="match_parent" 
      android:layout_height="wrap_content"
      android:textSize="13sp"
      android:textColor="#FFFFFF" 
      android:textStyle="bold"  
      android:paddingRight="20dip" 
      /&gt;
  </code></pre>
  
  <p>Thanks.</p>