title: Set the position of text in the center of button
body: <p>I have two buttons for zoom in and zoom out on my application. I want to put the "+ "and "-" in the center of button. I tried to set the gravity and padding but nothing changed and still the signs are located in the bottom of my button and half of it is not displayed. This is the xml code of layout: </p>
  
  <pre><code>&lt;LinearLayout
      android:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="50dp"
      &gt;
  
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:id="@+id/semanticText"
          android:textColor="@color/white"
          android:textSize="30sp"
          android:background="@drawable/semantic_text_style"
          /&gt;
  
      &lt;Button
          android:background="@drawable/zoom_button_style"
          android:id="@+id/zoomIn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right"
          android:text="@string/zoom_in"
          android:onClick="zoomIn"
          style="@style/button_text"
          android:gravity="center_horizontal"
          /&gt;
  
      &lt;Button
          android:background="@drawable/zoom_button_style"
          android:id="@+id/zoomOut"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/zoom_out"
          android:layout_gravity="right"
          android:onClick="zoomOut"
          style="@style/button_text" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I would be thankful to give me a suggestion to solve it. </p>