title: layout_toRightOf works and layout_toLeftOf doesn't, how to solve?
body: <p>I have simple relative layout - an ImageView (iv1) and a TextView (tv1) to the left of iv1. Unfortunately, I see no tv1. What is more, even hierarchyViewer can't help me find it.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;wrap_content&quot;
  android:gravity=&quot;right&quot;
  android:background=&quot;@android:color/white&quot;
  &gt;
  
  &lt;ImageView
      android:id=&quot;@+id/iv1&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:src=&quot;@drawable/ic_launcher&quot; /&gt;
  
  &lt;TextView
      android:id=&quot;@+id/tv1&quot;
      android:layout_toLeftOf=&quot;@+id/iv1&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:text=&quot;TextView&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>It looks like that:</p>
  <p><img src="https://i.stack.imgur.com/U0SIj.png" alt="enter image description here" /></p>
  <p>However, if I change android:layout_toLeftOf=&quot;@+id/iv1&quot; to android:layout_toRightOf=&quot;@+id/iv1&quot;, my text view becomes positioned to right of image view. It seems like toRightOf works and toLeftOf doesn't.
  Here how it looks:</p>
  <p><img src="https://i.stack.imgur.com/JofVe.png" alt="enter image description here" /></p>
  <p>What is the matter? How to make layout_toLeftOf work?</p>