xml文件中你把一个传数字的属性传入了其他值

解决方案 »

  1.   

    估计是layout文件写错了。
    把代码和layout文件贴出来看看?
      

  2.   

    Can't convert to dimension: type=0x12,,布局文件里有个应该用 dp或者类似单位的地方,你没有带对单位吧
      

  3.   

    Can't convert to dimension: type=0x12 
    同意楼上,估计是在xml里属性赋值错误或引用错误,比如使用1的赋值了1dp之类
      

  4.   

    楼主去这个网站看看http://www.tuicool.com/articles/rErMzm
      

  5.   

    Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension  在布局资源中看下那些设置宽高、边距的值