How to stop EditText from taking whole width in RelativeLayout
<p>I have below layout which basically show "messages" as bubble slimier to built-in "Messages". I just need to show also an arrow image on the right, the image is shown, but the problem is:</p>

<p>when the <code>"EditText"</code> have lots of text, it takes whole width, <code>ImageView</code> is still show but appear in top of the "<code>EditText</code>"</p>

<p>How could I stop "EditText" from taking whole width, I tried <code>android:layout_weight</code> but it didn't work</p>

<p>any clue?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" &gt;
    &lt;!--    android:background="#FFDBE2ED"--&gt;
 &lt;LinearLayout 
        android:id="@+id/wrapper"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
         android:background="#00DBE2ED"
          &gt;

    &lt;RelativeLayout
        android:id="@+id/wrapper2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="#00DBE2ED"
        android:weightSum="1.0" 
       &gt;
    &lt;!--  android:layout_gravity="center" --&gt;
        &lt;EditText
            android:id="@+id/comment"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"

            android:editable="false" 
            android:layout_marginTop="5dip"
            android:layout_marginRight="5dip"
            android:layout_marginLeft="5dip"
            android:background="@drawable/bubble_yellow"
            android:paddingLeft="10dip"
            android:text="Hello bubbles!"
            android:textColor="@android:color/primary_text_light"
            android:layout_weight=".70" 
             /&gt;
         &lt;TextView
            android:id="@+id/sender"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"

            android:layout_margin="0dip"

            android:paddingLeft="5dip"
            android:paddingRight="2dip"
            android:text="Hello bubbles!"

           android:textColor="#b9dcdcdc"
           android:textSize="11sp"    
            android:layout_below="@+id/comment"

            /&gt;
           &lt;ImageView
    android:id="@+id/aquaplayicon"
    android:src="@drawable/aquaplayicon"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:clickable="true"
     android:onClick="onClickGirl"
    android:layout_alignParentRight="true"
    android:paddingRight="5dip"
     android:layout_centerVertical="true"
      android:layout_weight=".30"

    /&gt;

    &lt;/RelativeLayout&gt;


    &lt;/LinearLayout&gt;


&lt;/LinearLayout&gt;
</code></pre>
