1、在xml中的代码
2、res--drawable---选中selector,新建drawable文件夹
selector
原文:http://www.cnblogs.com/8023-itxinde/p/5206738.html