With this code :
I can set size of a dialog at specific size. But loaded template is not resized.
I have tried with :
and
(and probably some more), but non of them, did the work.
Any ideas ?
B4X:
Dialog.Title = "Proizvodi"
Dim rs As Object = Dialog.ShowTemplate(options, "", "", "Odustani")
Dialog.Base.SetLayoutAnimated(0, Activity.Left + 5%x, Activity.top + 5%y, Activity.Width - 10%x, Activity.Height - 10%y)
Wait For (rs) Complete (Result As Int)
If Result = XUI.DialogResponse_Positive Then
Log(options.SelectedItem)
End If
I can set size of a dialog at specific size. But loaded template is not resized.
I have tried with :
B4X:
Dialog.Resize(100%x, 100%y)
B4X:
options.Resize(Dialog.Base.Width, Dialog.Base.Height)
Any ideas ?