I don't understand. I would not change the dialog width or height. If i rotate my device, the dialog resizes itself if the dialog height/width exceeds the new screen heigth/width.
I can stay with it. If i have a dynamic layout (e.g. change label value on listview click) i must save the state on click somewhere and respect the settings on Dialog_show.
I'm having an issue with the dialog. I cannot get it to show properly. I don't see what is in the designer, being shown. The button is missing and no items are in the listbox.
B4X:
Dim dialog As DialogView
dialog.LoadLayout("setupweather").ShowOk("TITLE1", "POS1")
Sub setupweather_Show()
LocationsListView.SingleLineLayout.Label.TextColor = Colors.Black
LocationsListView.AddSingleLine("Duvall, Wa 98019")
End Sub
In order to use the ShowDefault method, you must have one label for the title and one label for the content and add the TITLE1 and POS1 strings to the tags of the labels in your layout that you want to have as a title and content respectively.
If you want to use the SYSTEM title and buttons just use the Show, ShowOk, ShowYesNo or ShowYesNoCancel methods: