自定义控件declare-styleable的使用

1.首先,先写attrs.xmlhtml 在res-vlaues文件夹下建立资源文件attrs.xml或则自定义一个资源文件xx.xml,均可以。java 以后在里面配置declare-styleable ,name为PersonAttrandroid [html] view plain copy <?xml version="1.0" encoding="utf-8"?>   <resource
相关文章
相关标签/搜索