异常信息:
编译时: Expected resource of type styleable [ResourceType]
异常解决:
在使用TypedArray的语句,方法上或者类上加上注解@SuppressWarnings("ResourceType")
关于解决方法:
编译时: Expected resource of type styleable [ResourceType]
异常解决:
在使用TypedArray的语句,方法上或者类上加上注解@SuppressWarnings("ResourceType")
关于解决方法:
SuppressWarning("XXX")方法的作用是告诉编译器,一个让类型的警告不再显示.参数"XXX",就是指定某种类型的警告.就像我们的使用SuppressWarning("ResourceType"),就是说不要再报关于ResourceType类型的警告错误了.
原文链接:http://fx114.net/qa-145-163596.aspx