右键点击drawable,点击new,点击drawable resource file
然后起名字为huanxing,root element改为shape,点击OK
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<corners android:radius="100dp"/> //这个是圆形的弧度
<solid android:color="#FF447E" /> //这个是色号
</shape>
再输入上面的代码