<?xml version="1.0" encoding="utf-8" ?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/background_light" android:state_pressed="true"></item>
<item android:drawable="@android:color/background_light" android:state_focused="true"></item>
<item>
<shape>
<!--圆角-->
<corners android:radius="20dp"></corners>
<!--渐变-->
<gradient android:startColor="#eae237"></gradient>
<!--内边距-->
<padding android:bottom="20dp"></padding>
<!--填充颜色-->
<solid android:color="#f73c24"></solid>
<!--边框 width:边框宽度 color:边框颜色 dashGap:边框线的间隔 dashWidth:边框线的长度-->
<stroke android:width="10dp" android:color="#0feebb" android:dashGap="3dp" android:dashWidth="100dp"></stroke>
</shape>
</item>
</selector>
<Button
android:id="@+id/button7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/button6"
android:text="按钮的selector选择器"
android:background="@drawable/button_selector" />