一、在drawable下面添加xml文件rounded_editview.xml
复制代码 代码如下:
android:right="10dp"
android:bottom="10dp">
二、在EditText的background属性中引用这个xml
复制代码 代码如下:
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:background="@drawable/rounded_editview"
android:hint="@string/text_hint_username"/>



