Android Question SOLVED Can't show a CustomMenu from Layout

scsjc

Well-Known Member
Licensed User
I try a custompanel with a (XUIViews version 1.70) B4XView to load layout...
but the result is: anywheresoftware.b4a.BALayout{c9d1735 V.E ......... }

WhatsApp Image 2019-01-20 at 11.37.26.jpeg


the code use:

B4X:
    Dim pnl As B4XView = xui.CreatePanel("")
    pnl.SetLayoutAnimated(0, 0, 0, 100%x, 300dip) 'set the content size
    pnl.LoadLayout("dialog1")
    Dialog.PutAtTop = True 'put the dialog at the top of the screen

some idea where is a mistake?
thanks !!!
 

scsjc

Well-Known Member
Licensed User
I try a custompanel with a (XUIViews version 1.70) B4XView to load layout...
but the result is: anywheresoftware.b4a.BALayout{c9d1735 V.E ......... }

View attachment 76496

the code use:

B4X:
    Dim pnl As B4XView = xui.CreatePanel("")
    pnl.SetLayoutAnimated(0, 0, 0, 100%x, 300dip) 'set the content size
    pnl.LoadLayout("dialog1")
    Dialog.PutAtTop = True 'put the dialog at the top of the screen

some idea where is a mistake?
thanks !!!

i dont know why, but i clear the project and recompile and work :)
 
Upvote 0
Top