#Event: ItemClick (Clr As Int)
Sub Class_Globals
Private mEventName As String 'ignore
Private mCallBack As Object 'ignore
Private mBase As B4XView 'ignore
Private xui As XUI 'ignore
Private colorslv As CustomListView <==== error: is not initialized !!
Private ColorLabel As B4XView
Private ColorPanel As B4XView
Private editsearchCol As EditText
End Sub
Public Sub Initialize (Callback As Object, EventName As String)
mEventName = EventName
mCallBack = Callback
Log(EventName)
End Sub
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
mBase = Base
Sleep(0) 'cannot load layouts in DesignerCreateView without calling Sleep before
mBase.LoadLayout("listtemplate")
colorslv.sv.SetColorAndBorder(xui.Color_Transparent, 0, 0, 0) <==== error in runtime: null object reference !!