This problem only occurs in debug mode, it works perfectly fine in Release mode.
When I try to use loadlayout, I get an error that the imageview inside my layout must first be initialised, but since this is a designer added view, it should not need initialisation, right?
Could it be a number issue? I have 35 small imageviews on there, but this worked in the past where there were only 30.
There's not really any code to show other than I used Panel.LoadLayout("layoutname") (of course replacing Panel and layoutname with the actual names) and this line causes the error.
Here's the stack trace:
When I try to use loadlayout, I get an error that the imageview inside my layout must first be initialised, but since this is a designer added view, it should not need initialisation, right?
Could it be a number issue? I have 35 small imageviews on there, but this worked in the past where there were only 30.
There's not really any code to show other than I used Panel.LoadLayout("layoutname") (of course replacing Panel and layoutname with the actual names) and this line causes the error.
Here's the stack trace:
Stack Trace:
Error occurred on line: 312 (CardPreview)
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at com.ygoacc.debug.cardpreview._loadlayouts(cardpreview.java:793)
at com.ygoacc.debug.cardpreview._activity_create(cardpreview.java:549)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ygoacc.debug.cardpreview.afterFirstLayout(cardpreview.java:105)
at com.ygoacc.debug.cardpreview.access$000(cardpreview.java:17)
at com.ygoacc.debug.cardpreview$WaitForLayout.run(cardpreview.java:83)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8016)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
Caused by: java.lang.RuntimeException: Object should first be initialized (ImageView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)