Thanks Mafu!
About the listview question. Sure you can.
Declare a global DialogView object and generate the Listview declaration from the layout that contains your dialog design.
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Dialog As DialogView
Public ListView1 As ListView
End Sub
Create a "show" event for your dialog using the name of the layout (in my sample "dialog") and initialize the list view
Sub Dialog_Show
ListView1.SingleLineLayout.Label.TextColor = Colors.Black
For i=1 To 10
ListView1.AddSingleLine("item #" & i)
Next
End Sub
In the listview click handler, dismiss the global dialog passing as dialogresult the position of the clicked listview item
Sub ListView1_ItemClick (Position As Int, Value As Object)
Dialog.Dismiss(Position)
End Sub
Show your dialog
Sub Button1_Click
Dim Result As Int = Dialog.LoadLayout("Dialog").Show("Please select", "", "", "cancel", Null)
Msgbox("Result = " & Result, "")
End Sub
Attached is a sample project
About your last issue. The dialog width and height
are fixed and the dialog is not resizable since its width and height is defined by the width and height of the panel in your dialog layout. Can you please show some code that demonstrates the issue?