The xCustomListView sample program exits as soon as it is sent to the phone. How to change?
Thank you .
Thank you .
B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Dim i As Int
For i=0 To 5
Dim pnl As Panel
pnl.Initialize("panel_" & i)
Dim image As ImageView
image.Initialize("image_" & i)
Dim sFilename As String="logo_" & i & ".png"
Log("sFilename: " & sFilename)
'xui.MsgboxAsync(sFilename, "sFilename")
'image.Bitmap=LoadBitmap(File.DirAssets,sFilename) '<< -- There's a problem here.
pnl.AddView(image,0dip,0dip,80dip,80dip)
CustomListView1.Add(pnl,"panel_" & i)
Next
End Sub