自定義控件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
相關文章
相關標籤/搜索