I want to use B4XDialog with custom layout, but I want for "OK", "CANCEL", and "NO" buttons to disappeared totally.
Above code will show my custom dialogpanel , it is a XUI Custom View.
dp.Create_Layout and dp.SetContent are my custom functions.
B4XDialog can show this view, however, it keep sparing some space for "OK","NO", and "CANCEL" buttons.
I want to disable those buttons totally, because I use external GPIO buttons, and can control Dialog.Close to close it.
B4X:
dialog_height = 0.5 * buttonpanel.Height
dialog_width = 0.5 * buttonpanel.Width
Dim dp As dialogpanel
dp.Initialize(Me,"dp")
dp.Create_Layout(dialog_width,dialog_height)
dp.SetContent("Test Title","Test Content")
dialog.Initialize(buttonpanel)
dialog.ShowCustom(dp.Base,"","","")
Wait For Complete(result As Int)
Log("Result = "&result)
Above code will show my custom dialogpanel , it is a XUI Custom View.
dp.Create_Layout and dp.SetContent are my custom functions.
B4XDialog can show this view, however, it keep sparing some space for "OK","NO", and "CANCEL" buttons.
I want to disable those buttons totally, because I use external GPIO buttons, and can control Dialog.Close to close it.