title: Android align layout center
body: <p>I`m trying to make Layout with LOGO and TEXT align center between ActionBar and Bottom layout.
  Like <a href="http://i.stack.imgur.com/5B6OA.jpg" rel="noreferrer">this</a></p>
  
  <p>I try to do it, but it does not work corectly. It make the layout with logo by center of the scree. It look like <a href="http://i.stack.imgur.com/vf0Ye.jpg" rel="noreferrer">this</a></p>
  
  <p>Does the anybody know where is misteke?
  My code:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/drawer_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  //MainLayout
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  tools:context="text" &gt;
  
  //LOGO Layout
  &lt;RelativeLayout
      android:id="@+id/relativeLayout0"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"
      android:gravity="center_vertical|center_horizontal|center" &gt;
  
  &lt;ImageView
      android:id="@+id/imageView1"
      android:layout_width="wrap_content"
      android:layout_height="@dimen/mainlogo_height"
      android:src="@drawable/gerb_big" /&gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_below="@+id/imageView1"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="17dp"
      android:gravity="center"
      android:text="text"
      android:textColor="#900000"
      android:textSize="@dimen/OA_size" /&gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_below="@+id/imageView1"
      android:layout_centerHorizontal="true"
      android:gravity="center"
      android:text="text"
      android:textColor="#900000"
      android:textSize="@dimen/NU_size" /&gt;
  
  &lt;/RelativeLayout&gt;
  
  //Bottom Layout
  &lt;RelativeLayout
      android:id="@+id/relativeLayout1"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_centerHorizontal="true"
      android:layout_centerInParent="false"
      android:layout_centerVertical="true"
      android:gravity="bottom|center_horizontal|center" &gt;
  
      &lt;ImageButton
          android:id="@+id/home"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="15dp"
          android:layout_marginRight="15dp"
          android:background="#ffffff"
          android:onClick="home_Click"
          android:scaleType="fitXY"
          android:src="@drawable/home" /&gt;
  
      &lt;ImageButton
          android:id="@+id/news"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:layout_marginLeft="15dp"
          android:layout_marginRight="15dp"
          android:layout_toRightOf="@+id/home"
          android:background="#ffffff"
          android:onClick="news_Click"
          android:scaleType="fitXY"
          android:src="@drawable/database" /&gt;
  
      &lt;ImageButton
          android:id="@+id/anons"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:layout_marginLeft="15dp"
          android:layout_marginRight="15dp"
          android:layout_toRightOf="@+id/news"
          android:background="#ffffff"
          android:onClick="annons_Click"
          android:scaleType="fitXY"
          android:src="@drawable/calendar" /&gt;
  
      &lt;ImageButton
          android:id="@+id/faculty"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:layout_marginLeft="15dp"
          android:layout_marginRight="15dp"
          android:layout_toRightOf="@+id/anons"
          android:background="#ffffff"
          android:onClick="faculty_Click"
          android:scaleType="fitXY"
          android:src="@drawable/category" /&gt;
  
  &lt;/RelativeLayout&gt;
  
  
  
  &lt;/RelativeLayout&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>