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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -