title: TextView gravity not working on API 18 or higher
body: <p>I have an TextView wich overlaps some other view. Everything works great, except the gravity on API equal or higher than 18.</p>
  
  <p>Here is my TextView:</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/overlappingTextView"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:layout_alignBottom="@id/behindLinearLayout"
      android:layout_alignLeft="@id/behindLinearLayout"
      android:layout_alignRight="@id/behindLinearLayout"
      android:layout_alignTop="@id/behindLinearLayout"
      android:background="@drawable/overlapping_bg"
      android:gravity="center"
      android:text="Waiting for user confirmation..."
      android:textColor="@color/blue" /&gt;
  </code></pre>
  
  <p>The gravity works ok on 4.2.2 or lower but is not working on 4.3 and higher ... It works only partially, it is centered but only vertically.</p>
  
  <p><img src="https://i.stack.imgur.com/XYetK.png" alt="On API 4.1.2">
  <img src="https://i.stack.imgur.com/NbUf3.png" alt="On API 4.3">
  LE:</p>
  
  <p>There is no fix for this issue? Or does anyone know why this is happening? </p>