自定义属性之坑
不能定义名称为sdk的自定义属性名,如:
<!-- sdk attr -->
android:text
android:textSize
android:textColor
<!-- 自己定义的属性不能定义成上面的属性,不能定义如下 -->
<attr name="text" format="string"/>
<attr name="textSize" format="dimension"/>
<attr name="textColor" format="color"/>
通过TypedArray获取数据时还有可能为null