edixt右侧按钮显示布局初学

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> 

效果图:

猜你喜欢

转载自blog.csdn.net/qq_36408196/article/details/79844449