1、在您的android工程的res目录下的drawable建立xml配置文件button_shape.xml

3、在button按钮的属性中,设置android:background="@drawable/button_shape",这样就使用了刚刚我们自定义的button_shape.xml资源

1、在您的android工程的res目录下的drawable建立xml配置文件button_shape.xml
3、在button按钮的属性中,设置android:background="@drawable/button_shape",这样就使用了刚刚我们自定义的button_shape.xml资源