android两种自定义属性的方法

1. 直接自定义。通过attrs.getAttributeXXXValue获取

2. 定义在attrs.xml文件中,通过Context.ObtainStyledAttributes和TypeArray.getxxx获取