Yes I know... I use this same file earlier to load my view (before launching animation). How can I help you to give you more information ?
Best and thanks again ! On Dec 30, 7:28 pm, Romain Guy <[email protected]> wrote: > Your stack trace does not contain the root cause. At the bottom of > your log you can see: > > 2-30 10:57:21.785: ERROR/AndroidRuntime(1347): Caused by: > android.view.InflateException: Binary XML file line #21: Error > inflating class java.lang.reflect.Constructor > > Following should be the actual exception. > > > > On Wed, Dec 30, 2009 at 3:02 AM,arnouf<[email protected]> wrote: > > Hello, > > > I do an animation moving a webview outside the screen. on Animation > > end event, I'm trying to recreate a view containing a webview (using > > layoutinflater) but I've always the following error and I don't > > understand why. > > This method is called to display the content before the animation. > > It's the same method called to rebuild the screen. > > > LayoutInflater layout = getLayoutInflater(); > > mCurrentLayout.removeAllViews(); > > RelativeLayout convertViewDetails = (RelativeLayout) layout.inflate( > > R.layout.layout_photo, null); > > mCurrentLayout.addView(convertViewDetails, 0); > > String htmlCode = "my html code"; > > ((WebView) convertViewDetails.findViewById(R.id.imgPhotoView)) > > .loadData(htmlCode, "text/html", "utf-8"); > > > ((WebView) convertViewDetails.findViewById(R.id.imgPhotoView)) > > .setOnTouchListener(evtOnFlipper); > > > The (long) exception > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): > > android.view.InflateException: Binary XML file line #7: Error > > inflating class java.lang.reflect.Constructor > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.LayoutInflater.createView(LayoutInflater.java:512) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView > > (PhoneLayoutInflater.java:56) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.LayoutInflater.rInflate(LayoutInflater.java:617) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.LayoutInflater.inflate(LayoutInflater.java:407) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.LayoutInflater.inflate(LayoutInflater.java:320) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.LayoutInflater.inflate(LayoutInflater.java:276) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > com.cbsinteractive.zdnetfr.PhotosContentActivity.displayCurrentPhoto > > (PhotosContentActivity.java:170) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > com.cbsinteractive.zdnetfr.PhotosContentActivity.access$1 > > (PhotosContentActivity.java:159) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > com.cbsinteractive.zdnetfr.PhotosContentActivity$5.onAnimationEnd > > (PhotosContentActivity.java:255) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.animation.AnimationSet.getTransformation > > (AnimationSet.java:329) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1363) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.View.draw(View.java:5944) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.widget.FrameLayout.draw(FrameLayout.java:352) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.View.draw(View.java:5841) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.View.draw(View.java:5841) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.widget.FrameLayout.draw(FrameLayout.java:352) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.View.draw(View.java:5841) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.widget.FrameLayout.draw(FrameLayout.java:352) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.View.draw(View.java:5841) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.widget.FrameLayout.draw(FrameLayout.java:352) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > com.android.internal.policy.impl.PhoneWindow$DecorView.draw > > (PhoneWindow.java:1847) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewRoot.draw(ViewRoot.java:1217) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewRoot.performTraversals(ViewRoot.java:1030) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.ViewRoot.handleMessage(ViewRoot.java:1482) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.os.Looper.loop(Looper.java:123) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.app.ActivityThread.main(ActivityThread.java:3948) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > java.lang.reflect.Method.invokeNative(Native Method) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > java.lang.reflect.Method.invoke(Method.java:521) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > > (ZygoteInit.java:782) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > dalvik.system.NativeStart.main(Native Method) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): Caused by: > > java.lang.reflect.InvocationTargetException > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.webkit.WebView.<init>(WebView.java:583) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > java.lang.reflect.Constructor.constructNative(Native Method) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > java.lang.reflect.Constructor.newInstance(Constructor.java:446) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at > > android.view.LayoutInflater.createView(LayoutInflater.java:499) > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): ... 55 more > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): Caused by: > > android.view.InflateException: Binary XML file line #21: Error > > inflating class java.lang.reflect.Constructor > > 12-30 10:57:21.785: ERROR/AndroidRuntime(1347): at android.view. > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

