首先在其他目录中如下图单击 然后修改Root element为selector,Director name为drawable,然后输入文件名即可。 完成 这里也有个疑问,直接新建没有Root element选项