Can you upload the project?
Sure. Here it is. It may be something simple (I hope).
From my Readme file describing the problem:
This app produce 2 different exceptions, depending on whether the CustomListView item panels are built using code or loaded from a layout.
The CustomListView will be built and displayed correctly, or so it seems. But when any of the LimitBar's are resized, one of the exceptions will occur.
1)
'If the CustomListView panels are built at runtime using code, I get this exception when a LimitBar is resized (shown below).
'It appears there is something wrong with Callback that is defined in LimitBar. I'm not sure what is wrong with it.
'Module: LimitBar Line 223 --->
' if a callback routine exists in the calling module we call it
If SubExists(Callback, EventName & "_ValuesChanged") Then '<=== EXCEPTION (Not Using Layout): java.lang.ClassCastException: anywheresoftware.b4a.BALayout cannot be cast to java.lang.String
2)
'If the CustomListView panels are built using a Layout, the following exception occurs when a LimitBar is resized.
'Module: CustomListView Line 216
parent = jo.RunMethod("getParent", Null) '<--- EXCEPTION (Using Designer Layout): java.lang.RuntimeException: Method: getParent not found in: anywheresoftware.b4a.samples.customlistview.limitbar
Any idea what is causing both exceptions?
TIA