Public Sub Initialize (Parent As B4XView, Title As Object, Width As Int, Height As Int)
vParent = Parent
Dialog.Initialize(Parent)
Dialog.VisibleAnimationDuration = 0
mTitle = Title
mBase = xui.CreatePanel("mBase")
mBase.SetLayoutAnimated(0, 0, 0, Width, Height)
mBase.LoadLayout("ListTemplate")
mBase.SetColorAndBorder(xui.Color_Transparent, 0, 0, 0)
CustomListView1.sv.SetColorAndBorder(xui.Color_Transparent, 0, 0, 0)
CustomListView1.PressedColor = xui.Color_Transparent
PrefItems.Initialize
SearchTemplate.Initialize
DateTemplate.Initialize
LongTextTemplate.Initialize
LongTextTemplate.CustomListView1.PressedColor = 0
Dialog.OverlayColor = xui.Color_Transparent
#if B4J
Dim sv As ScrollPane = CustomListView1.sv
sv.StyleClasses.Add("b4xdialog")
sv.InnerNode.StyleClasses.Add("b4xdialog")
#end if
setTheme(THEME_LIGHT)
'this is to disable the default keyboard
NativeMe.InitializeContext
End Sub