edixt右侧按钮显示:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/myButton"
android:layout_alignParentRight="true"
android:layout_width="100dip"
android:layout_height="wrap_content"
/>
<EditText
android:id="@+id/myEdit"
android:layout_toLeftOf="@id/myButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>
效果图: