Open lukemcredmond opened 9 years ago
@lukemcredmond @dyan02 Hmm, I seem to be getting the same thing! Aside from the workaround, any progress on this? I'm going to take a look and see if i can figure out why it's happening but figured I'd double check before I do :)
Same for me, multiple ListView in a ScrollableView... :( @mikefogg @iskugor any idea ?
Same for me.
Please check latest 0.6 module version.
me facing this issue also. any solution? try 0.6 module for android . same crash :(
Has anyone found a solution to this?
It should be fixed with https://github.com/iskugor/Ti.SwipeRefreshLayout/pull/17
@tlenclos thanks for the response. I'm not sure if it's maybe a different error, but I've been getting a lot of crash reports that look like this (using the latest version):
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myappname/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2413)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
at android.app.ActivityThread.access$900(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:3770)
at android.view.ViewGroup.addView(ViewGroup.java:3623)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at android.view.ViewGroup.addView(Native Method)
at android.view.ViewGroup.addView(ViewGroup.java:3568)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at android.view.ViewGroup.addView(Native Method)
at android.view.ViewGroup.addView(ViewGroup.java:3544)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at android.view.ViewGroup.addView(Native Method)
at com.rkam.swiperefreshlayout.SwipeRefresh.processProperties(SwipeRefresh.java:67)
at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1219)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:509)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)
at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)
at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:258)
at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)
at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:638)
at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
at android.app.Activity.performCreate(Activity.java:5451)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377)
... 12 more
Bumping this, anyone ever figure this out? This still happens :/
SDK 3.3.0 OSX Titanium Studio, build: 3.4.1
view
controler
using com.mcongrove.tabs for navigation and on selection i call a handleNavigation function,
the above code works perfect the first time, after navigating away and returning the 2nd time no error but list does not appear,
navigate away again and return to the view and exception is threw, in the processProperties function in the SwipeRefresh.java
i changed the function to
exception no longer occurs but the list is not displaying