新建颜色选择器
报错
The color “btn color selector” in color has no declaration in the base color folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier :2
颜色中的颜色“btn颜色选择器”在基本颜色文件夹中没有声明;这可能导致资源在与此限定符不匹配的配置中被查询时崩溃:2。
android:foreground="@color/red"
事件处理
1、点击事件
2、长按事件
3、触摸事件
onTouch有三种
onTouch-return true;
onLongClick-return true;
自己创建方法