android兩種自定義屬性的方法

1. 直接自定義。經過attrs.getAttributeXXXValue獲取xml

2. 定義在attrs.xml文件中,經過Context.ObtainStyledAttributes和TypeArray.getxxx獲取get

相關文章
相關標籤/搜索