title: TextView does not wrap content
body: <p>I have a layout that plays the role of a row item of a listView. The layout has a textview and an edittext as below.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal" 
      android:layout_width="match_parent"
      android:layout_height="wrap_content" 
      android:weightSum="4"&gt;
  
      &lt;TextView
          android:id="@+id/itemFlightNameTextView"
          android:layout_width="0dip"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:text="test test test test"
          android:layout_weight="1"
          android:singleLine="false"/&gt;
  
      &lt;EditText
          android:id="@+id/busNumberEditText"
          android:layout_width="0dip"
          android:layout_height="match_parent"
          android:layout_weight="3"
          android:layout_marginLeft="10dip"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:singleLine="true"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Now, the problem is that the <strong>textView does not wrap_content</strong>. If i remove the edittext, textView wraps content properly so <strong>it's a fault of edittext's existance</strong>. Any help on the reason why layout has this behavior ?</p>