title: RelativeLayout textviews overlapping
body: <p>I have a rather simple ListView row:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal" &gt;
  
  &lt;TextView
      android:id="@+id/tournament_name"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:textSize="25dp" /&gt;
  
  &lt;TextView
      android:id="@+id/tournament_winner"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:textSize="25dp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>When the text of <code>"@+id/tournament_name"</code>is long - it overlaps with the one from <code>"@+id/tournament_winner"</code> and I don't understand why. </p>
  
  <p>I tried using <code>android:singleLine="false"</code>to no avail. I also tried using <code>android:inputType="textMultiLine"</code>as the docu says <code>android:singleLine="false"</code> is deprecated but then I get the warning: <code>Attribute android:inputType should not be used with &lt;TextView&gt;: Change element type to 
   &lt;EditText&gt; ?</code> so no good here as well.</p>
  
  <p>I also tried using <code>android:ellipsize="end"</code> but this doesn't work. I assume it is because the text in the left <code>TextView ("@+id/tournament_name")</code> is NOT long enough to fill up the full width of the <code>ListView</code> (which code is not sowing here).</p>
  
  <p>I was sure that if I use <code>android:layout_width="wrap_content"</code>the two TextView fields shouldn't overlap.</p>
  
  <p>Here is an example (see the second line):</p>
  
  <p><img src="https://i.stack.imgur.com/dmtQM.png" alt="enter image description here"></p>
  
  <p>Any further ideas how this could be fixed?</p>