摘要:
自定义View会用到TypedArray,attrs.xml和AttributeSet知识先说一下attrs.xml文件。这个文件定义了自定义View的属性的信息,包括属于哪个控件属性的名称,属性的类型。下面是一个普通的attrs.xml的内容<resources><declare-styleable name = “MyView”><attr name = “textColor” format = “color”></attr><attr name = “textSize” format = “dimension”/></de 阅读全文
posted @ 2013-04-24 07:38
草原小狼
阅读(189)
评论(0)
推荐(0)

浙公网安备 33010602011771号