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:
It's ok.