如题发生下面错误
requires a 'drawable' attribute or child tag defining a drawable
搜索得知:按钮的背景图片不支持颜色选择器,只支持drawable选择器.如果要用颜色则需要建立一个shape类型的drawable。
详情地址:
http://www.cnblogs.com/itnote/articles/2513734.html
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/semitransparent_white"/>
</shape>