android - TypedArray.getDimensionPixelSize crash -
when use
typedarray = context.obtainstyledattributes(attrs, com.android.internal.r.styleable.view, defstyle, 0); a.getdimensionpixelsize(com.android.internal.r.styleable.view_padding, layout_unknow);
the typedarray.getdimensionpixelsize(typedarray.java:572)
method crashed in android 5.0
the log follows:
caused by: java.lang.unsupportedoperationexception: can't convert dimension: type=0x3 e androidruntime: @ android.content.res.typedarray.getdimensionpixelsize(typedarray.java:572)
how can solve issue?
Comments
Post a Comment