title: Android toLeftOf and toRightOf not working strange behavior
body: <p>I want to place an <code>EditText</code> between 2 images...</p>
  
  <p>Normally, it works perfect but I don't know why it is not working now...</p>
  
  <p>I put first both images in the <code>RelativeLayout</code> and than add the <code>EditText</code>...</p>
  
  <p>Screenhot:</p>
  
  <p><a href="https://i.stack.imgur.com/zjOFw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zjOFw.png" alt="Screenshot"></a></p>
  
  <p>Could you check my code ?</p>
  
  <pre><code>&lt;RelativeLayout
      android:id="@+id/search_view"
      android:layout_width="match_parent"
      android:layout_height="?android:attr/actionBarSize"
      android:background="@color/white"
      android:elevation="3dp"
      android:visibility="invisible"&gt;
  
      &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_centerVertical="true"
          android:layout_marginLeft="18dp"
          android:src="@drawable/ic_action_navigation_arrow_back"
          android:id="@+id/search_view_back"/&gt;
  
      &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_centerVertical="true"
          android:layout_marginRight="18dp"
          android:src="@drawable/ic_action_navigation_close"
          android:id="@+id/search_view_delete"/&gt;
  
      &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textColor="@color/font"
          android:textSize="18dp"
          android:hint="@string/contact_search_hint"
          android:textColorHint="#607a7a71"
          android:singleLine="true"
          android:layout_centerVertical="true"
          android:layout_toRightOf="@id/search_view_back"
          android:layout_toLeftOf="@id/search_view_delete"
          android:paddingLeft="8dp"
          android:paddingRight="8dp"
          android:background="@android:color/transparent"
          android:imeOptions="actionSearch"
          android:id="@+id/search_view_input"
          /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>