title: Align Text in Center - Spinner
body: <p>Here is The Code : </p>
  
  <p>spinner.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:id="@+id/spinner"
  android:layout_width="match_parent"
  android:layout_height="40dp"
  android:maxLines="1"
  android:gravity="center"
  android:singleLine="true"
  android:textColor="#FFFFFF"
  android:textSize="12sp" /&gt;
  </code></pre>
  
  <p>Spinner : </p>
  
  <pre><code>    &lt;Spinner
                  android:id="@+id/spinner"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center" /&gt;
  </code></pre>
  
  <p>Java : </p>
  
  <pre><code>        array = new ArrayAdapter&lt;String&gt;(Activity.this,
                   R.layout.spinner, ArrayList);
          array .setDropDownViewResource(R.layout.spinner);
          Spinner.setAdapter(array );
          Spinner.setOnItemSelectedListener(this);
  </code></pre>
  
  <p>Problem : Text is still Aligned to the Left</p>