title: Android Textview text not centered
body: <p>I'm having issues with centering text in a textview.
  The problem is, in the layout manager in eclipse/android studio everything works fine and the text is centered nicely, but on my physical device it appears to be positioned too low. Here are two screeenshots of the layout manager of the IDE and my mobile phone(HTC One X), I'm speaking of the time and score in the gray areas:</p>
  
  <p><strong>My physical device:</strong></p>
  
  <p><img src="https://i.imgur.com/driepM3.png" alt="enter image description here"></p>
  
  <p><strong>Layout Manager of IDE:</strong></p>
  
  <p><img src="https://i.imgur.com/dTOqDGp.png" alt="enter image description here"></p>
  
  <p>
  </p>
  
  <p>Here's the layout.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/gameActivityBackGroundColor"
  android:gravity="center_horizontal|top"
  android:orientation="vertical"&gt;
  
  &lt;FrameLayout
      android:id="@+id/FrameLayout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="30dp" &gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="35dp"
          android:orientation="vertical" &gt;
  
          &lt;TextView
              android:id="@+id/textView1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:text="@string/scoreText"
              android:textSize="17sp" /&gt;
  
          &lt;TextView
              android:id="@+id/scoreView"
              android:layout_width="140dp"
              android:layout_height="45dp"
              android:layout_gravity="center_vertical"
              android:background="@drawable/timeviewbackground"
              android:gravity="center_vertical"
              android:paddingLeft="7dp"
              android:paddingTop="0dp"
              android:text="@string/startscore"
              android:textSize="35sp" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="230dp"
          android:orientation="vertical" &gt;
  
          &lt;TextView
              android:id="@+id/textView2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:text="@string/timeText"
              android:textSize="17sp" /&gt;
  
          &lt;TextView
              android:id="@+id/timeView"
              android:layout_width="100dp"
              android:layout_height="45dp"
              android:background="@drawable/timeviewbackground"
              android:gravity="center|center_vertical|center_horizontal"
              android:text="00:24"
              android:textAlignment="center"
              android:textSize="35sp" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/FrameLayout&gt;
  
  &lt;TextView
      android:id="@+id/textView3"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginRight="110dp"
      android:layout_marginTop="25dp"
      android:text="Level 2"
      android:textColor="@color/levelTextColor"
      android:textSize="17sp" /&gt;
  
  ...
  
  &lt;/LinearLayout&gt;
  </code></pre>