But I don't know how to make the close button in the top (maybe in the title bar) and not to have the buttons in the bottom.
B4X:
#Region List Of Colors custom Dialog
Sub CreateDialogLayout
Dialog.BackgroundColor = Colors.White
DialogPanel = xui.CreatePanel("")
DialogPanel.SetLayoutAnimated(0, 0, 0, 400dip, 400dip)
DialogPanel.LoadLayout("info")
End Sub
B4X:
If DialogPanel.IsInitialized = False Then
CreateDialogLayout
End If
Wait For (Dialog.ShowCustom(DialogPanel, "", "OK", "")) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
Base.Color = DialogPanel.Tag
End If
Any one know if this can be done.
I am quite a newbie to this XUI stuff and I am not clear with it yet.