Hello all,
It's a while I have not coded with B4X now, I have one project I would like to make with Banano. But I stuck on a basic thing. I tried to look on the forum but I cannot find.
How to set properties of Banano customview ?
I set like here but it doesn't work (It's the template Banano PWA):
It's doesn't work for me. .
Thank you, It's a shame for me, it's a basic things... ;-(
Regards,
Toky
It's a while I have not coded with B4X now, I have one project I would like to make with Banano. But I stuck on a basic thing. I tried to look on the forum but I cannot find.
How to set properties of Banano customview ?
I set like here but it doesn't work (It's the template Banano PWA):
B4X:
Sub MenuList_Click (returnName As String)
SKTools.ShowToast("Clicked on " & returnName & "!", "info", 3000, True)
' here we can load the layout of the menu item we clicked
Select Case returnName
Case "page1"
MainPageHolder.Element.Empty
MainPageHolder.Element.LoadLayout("WelcomePageLayout")
'===> I set like this text or image but it doesn't work for me :(
SKLabel1.Text = "One Text"
SKImage1.Src = "./assets/safari.png"
End Select
' and close the menu, if not always open
If MainSidebar.AlwaysOpen = False Then
MainSidebar.Close
End If
End Sub
It's doesn't work for me. .
Thank you, It's a shame for me, it's a basic things... ;-(
Regards,
Toky
Last edited: