Set button inside edittext android
<p>this is my layout image. I want to set the Edittext's text don't wrap on button. How i set this.
    This is link for image open
    <a href="http://screencast.com/t/fgD5a84HMC" rel="nofollow">http://screencast.com/t/fgD5a84HMC</a></p>

<pre><code> This is my layout

 &lt;RelativeLayout
    android:id="@+id/relativeLayout2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:background="@drawable/bg_headerbar" &gt;

    &lt;Button
        android:id="@+id/Button1"
        android:layout_width="60dip"
        android:layout_height="36dip"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="6dip"
        android:layout_marginLeft="4dip"
        android:layout_marginTop="6dip"
        android:gravity="center_vertical|center_horizontal"
        android:shadowDx="0"
        android:shadowDy="-1"
        android:shadowRadius="0.1"
        &gt;
    &lt;/Button&gt;

      &lt;EditText
        android:id="@+id/editText1"
        android:layout_width="fill_parent"
        android:layout_height="27dip"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="7dip"
        android:layout_marginRight="10dip"
        android:layout_marginTop="9dip"
        android:layout_toLeftOf="@+id/imageButton1"
        android:layout_toRightOf="@+id/Button1"
        android:background="@drawable/rounded_edittext"
        android:imeOptions="actionDone"
        android:padding="5dip"
        android:singleLine="true"
        android:text=""
        android:textSize="12dip" &gt;
    &lt;/EditText&gt;

    &lt;ImageButton
        android:id="@+id/imageButton1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_marginRight="10dip"
        android:layout_marginTop="6dip"
        android:background="@drawable/btn_cancel" &gt;
    &lt;/ImageButton&gt;

    &lt;ImageButton
        android:id="@+id/imageButton5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignRight="@+id/editText1"
        android:layout_centerVertical="true"
        android:layout_marginRight="5dip"
        android:background="@drawable/icn_inputclear"
         /&gt;
&lt;/RelativeLayout&gt;
</code></pre>
