Android Question XUI Dialog will not show

dannyjon

Member
Licensed User
Longtime User
This code, copied directly from an example is not loading the dialog. I have same code elsewhere in project and it does work but not here. Any ideas why not? Thanks.

Dim p As B4XView = xui.CreatePanel("") dialog.Initialize(p) Dim height As Int = 200dip p.SetLayoutAnimated(0, 0, 0, 100dip, 100dip) p.Width=100%x p.LoadLayout("serverCard") p.BringToFront dialog.Show("demo","","",""):
Dim p As B4XView = xui.CreatePanel("")
    dialog.Initialize(p)
    Dim height As Int = 200dip
    p.SetLayoutAnimated(0, 0, 0, 100dip, 100dip)
    p.Width=100%x
    p.LoadLayout("serverCard")
    p.BringToFront
    dialog.Show("demo","","","")
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
I would run the LoadLayout first and then do the initialization and the rest.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…