自定义view出现的空指针的懵逼

是view.findViewById

而不是findViewById

 

2.format可选项 

               "reference"//引用 
               "color"//颜色 
               "boolean"//布尔值 
               "dimension"//尺寸值 
               "float"//浮点值 
               "integer"//整型值 
               "string"//字符串 
               "fraction"//百分数,比如200%

posted @ 2017-03-17 20:22  阿金好掂  阅读(158)  评论(0编辑  收藏  举报