首先在Android studio工程中的res目录中找到drawable,然后创建shape。
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<shape xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid android:color=
"#0099CC"
/>
<corners android:bottomRightRadius=
"20dp"
android:bottomLeftRadius=
"20dp"
/>
<stroke android:width=
"1dp"
android:color=
"#000000"
/>
</shape>
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<shape xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid android:color=
"#CCCC99"
/>
<corners android:topLeftRadius=
"20dp"
android:topRightRadius=
"20dp"
/>
<stroke android:width=
"1dp"
android:color=
"#000000"
/>
</shape>
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<shape xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid android:color=
"#99CCFF"
/>
<corners android:topLeftRadius=
"20dp"
android:topRightRadius=
"20dp"
android:bottomRightRadius=
"20dp"
android:bottomLeftRadius=
"20dp"
/>
<stroke android:width=
"1dp"
android:color=
"#000000"
/>
</shape>