title: Horizontal Centering TextView in RelativeLayout doesn't work
body: <p>I can't place my textview in RelativeLayout in the center. I added this parameters</p>
  
  <pre><code>android:layout_centerHorizontal="true"
  android:layout_centerInParent="true"
  </code></pre>
  
  <p>but it doesn't help.</p>
  
  <p><strong>My Layout</strong></p>
  
  <pre><code>&lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/content_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="?android:attr/colorBackground"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="ru.myseolife.a99torrentsalpha2.MainActivity"
      android:gravity="center"
      tools:showIn="@layout/app_bar_main"
      &gt;
  
      &lt;TextView
          android:id="@+id/nothing_found"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_centerInParent="true"
          android:text="@string/nothingfound"
          /&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recyclerView"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"/&gt;
  
      &lt;LinearLayout
          android:id="@+id/linlaHeaderProgress"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:gravity="center"
          android:orientation="vertical"
          android:visibility="gone"
          &gt;
  
          &lt;ProgressBar
              android:id="@+id/progressBar"
              style="@style/Widget.AppCompat.ProgressBar"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              /&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Anybody know what can it be? TextView is centering vertically, but horizontally it appears in the left side.</p>