I am having an issue when using B4XDialog with a xCustomListView. I use the following
The I have code that loads the xCLV with other views
Then I call the dialog
Everything is loaded properly but the xCustomListView is wider than the dialog that appears. So much that the button is almost off the screen.
Since the xCLV is in the layout "layoutWithxCLV" with 80%x, and 80%y, I have the xCLV in the layout anchored in all four sides, shouldn't it size to the layout size?
I am only having this issue with a xCLV. I can use labels etc and then the dialog seems to work properly. I have the same style dialog working using BBCodeView and it works perfectly. Does it look like i'm doing anything wrong creating the B4xViews?
B4X:
pb = xui.CreatePanel("")
pb.SetLayoutAnimated(0, 0, 0, 80%x,80%y)
pb.LoadLayout("layoutWithxCLV")
The I have code that loads the xCLV with other views
B4X:
Dim pCLVitems As B4XView = xui.CreatePanel("")
pCLVitems.SetLayoutAnimated(0, 0, 0, itemsCLV.AsView.Width,60dip)
pCLVitems.LoadLayout("clvItem")
Then I call the dialog
B4X:
mdialog.PutAtTop = True 'put the dialog at the top of the screen
Wait For (mdialog.ShowCustom(pb, "OK", "", "")) Complete (Result As Int)
Everything is loaded properly but the xCustomListView is wider than the dialog that appears. So much that the button is almost off the screen.
Since the xCLV is in the layout "layoutWithxCLV" with 80%x, and 80%y, I have the xCLV in the layout anchored in all four sides, shouldn't it size to the layout size?
I am only having this issue with a xCLV. I can use labels etc and then the dialog seems to work properly. I have the same style dialog working using BBCodeView and it works perfectly. Does it look like i'm doing anything wrong creating the B4xViews?