Android Question Issue using B4XDialogs

I'm facing an issue when using B4Xdialogs in B4Xpages. I've added B4XDialog in B4XPage and The B4XDialog is poping behind the view of B4Xpage elements/layout.

I've attached a screenshot.

Screenshot 2023-01-02 215303.png


This is the code I've used,

[CODE lang="b4x" title="Code"] dialog.Initialize(Root)
dialog.PutAtTop=True
Dim pnl as B4XView = xui.CreatePanel("")
pnl.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)
pnl.LoadLayout("add_student_image_select")

Dim rs As Object = dialog.ShowCustom(pnl, "Ok", "", "")
Wait For (rs) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then

End If[/CODE]

If anyone knows how to fix this. Please let me know. Thank you
 
 
Upvote 1
Back
Top