title: How to android text alignment in a button when gravity:center is not working
body: <p>I have the following :</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:orientation="vertical" &gt;
   &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Button"
      android:gravity="left|center_vertical" /&gt;
  
  &lt;TextView 
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Text"
      android:gravity="left|center_vertical" /&gt;
  
  &lt;/LinearLayout
  </code></pre>
  
  <p>I want to get my button's text to align left. Right now its aligned in the center. The textview's text is aligned left without any problems. Is there something else I need to add? I don't really have to close and reopen my IDE because I use maven to build. Any suggestions? </p>
  
  <p>ANSWER</p>
  
  <p>Figured it out : set <code>android:paddingLeft="0dp"</code> . Done. No need for gravity there.</p>