add drawable res type and resolve some bug