title: google search style layout android
body: <p>I'd like to have the following figures style layout.</p>
  
  <p>My xml code:</p>
  
  <pre><code>&lt;RelativeLayout android:id="@+id/RelativeLayout01"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="fill_parent"
  android:orientation="vertical" 
  android:layout_height="fill_parent"&gt;
  
  &lt;LinearLayout
      android:id="@+id/LinearLayout01"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_centerVertical="true"
      android:orientation="vertical" &gt;
  
      &lt;ImageView
          android:id="@+id/imageViewFlickrLogo"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
  
      &lt;EditText
          android:id="@+id/edit_message"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="@string/edit_message" /&gt;
  
      &lt;Button
          android:id="@+id/button_search"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:onClick="searchUsingTag"
          android:text="@string/button_search" /&gt;
  &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The problem is that ImageView doesn't show and button is at the left. Actually, I want ImageView and editText and button showing in the center.</p>
  
  <p><img src="https://i.stack.imgur.com/LysOL.png" alt="enter image description here"></p>