hello, what is the cause of this error in customlistview?
This is my code, the error occurred in "Return p"
B4X:
Error occurred on line: 108 (e_Load)
Signal - 11
Stack Trace: (
"0 All Access Mobile SignalHandler + 120",
"1 libsystem_platform.dylib 0x000000021be8a9ec <redacted> + 40",
"2 All Access Mobile -[b4i_customlistview _insertatimpl:::::] + 4396",
"3 All Access Mobile -[b4i_customlistview _insertat:::] + 204",
"4 All Access Mobile -[b4i_customlistview _add::] + 156",
"5 All Access Mobile -[ResumableSub_e_load_GetTelcos resume::] + 4680",
"6 CoreFoundation <redacted> + 144",
"7 CoreFoundation <redacted> + 292",
"8 All Access Mobile +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608",
"9 All Access Mobile -[B4IShell runMethod:] + 448"
)
This is my code, the error occurred in "Return p"
My Code:
Sub CreateListItem(sideColor As Int, Text1 As String, Text2 As String, Width As Int, Height As Int) As Panel
Dim p As Panel
p.Initialize("")
p.SetLayoutAnimated(0, 1, 0, 0, Width, Height)
p.LoadLayout("eload_cell_items")
pSideCard.Color = sideColor
lblText.Text = $"${Text1.SubString2(0, 1).ToUpperCase}${Text1.SubString2(1, Text1.Length)}"$
lblText2.Text = Text2
Return p
End Sub
B4X:
CustomListView1.Add(CreateListItem(0xFFf44336, colroot, "", CustomListView1.AsView.Width, 60dip), colroot)