1. 直接自定義。經過attrs.getAttributeXXXValue獲取xml
2. 定義在attrs.xml文件中,經過Context.ObtainStyledAttributes和TypeArray.getxxx獲取get