[Click here Output][1] Use This this code may be worked..
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/REFReLayTellFriend"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="horizontal"
android:paddingBottom="5dp"
android:paddingTop="5dp">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/txtSearch"
android:background="@drawable/editext_rounded"
android:drawableLeft="@android:drawable/ic_menu_search"
android:gravity="start"
android:singleLine="true"
android:hint="Search"/>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_action_content_filter_list"
android:layout_alignRight="@+id/txtSearch"/>
</RelativeLayout></LinearLayout>
[1]: http://i.stack.imgur.com/r2zyX.png
已經使用相對佈局? –
您可以製作[部分可點擊](http://adilatwork.blogspot.com/2011/07/android-how-to-make-only-part-of- html) –