(Turn) editText rounded border

Reprinted from: https://www.cnblogs.com/yejiurui/archive/2013/08/14/3256432.html

 

Create an XML file named shape under the draweable file:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >

    <solid android:color="#ffffff" />

    <stroke
        android:width="1dip"
        android:color="#A0A0A0" />

    <padding
        android:bottom="10dp"
        android:left="10dp"
        android:right="10dp"
        android:top="10dp" />

    <corners android:radius="10dp" />

</shape>

 

Referenced in the code as:

background=@draweable/shape

 

It's ok.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326034070&siteId=291194637