G Genricke Member Apr 12, 2021 #1 Hi ! I use the code: B4X: Private Dialog As B4XDialog Dialog.Initialize(Root) Private ListTemplate As B4XListTemplate ListTemplate.Initialize ListTemplate.Resize(500dip,350dip) '<-- ???? 'ListTemplate.mBase.Width = 500dip '50%x VARIANT NOT WORK 'ListTemplate.mBase.Height = 350dip '80%y 'Create List .... Wait For (Dialog.ShowTemplate(ListTemplate, "", "ALL", "CANCEL")) Complete (Result As Int) ... Result: How can I increase the size of the list by the entire window ? Thanks !
Hi ! I use the code: B4X: Private Dialog As B4XDialog Dialog.Initialize(Root) Private ListTemplate As B4XListTemplate ListTemplate.Initialize ListTemplate.Resize(500dip,350dip) '<-- ???? 'ListTemplate.mBase.Width = 500dip '50%x VARIANT NOT WORK 'ListTemplate.mBase.Height = 350dip '80%y 'Create List .... Wait For (Dialog.ShowTemplate(ListTemplate, "", "ALL", "CANCEL")) Complete (Result As Int) ... Result: How can I increase the size of the list by the entire window ? Thanks !
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2021 #2 Add this: B4X: ListTemplate.CustomListView1.AsView.SetLayoutAnimated(0, 0, 0, ListTemplate.mBase.Width, ListTemplate.mBase.Height) Upvote 0
Add this: B4X: ListTemplate.CustomListView1.AsView.SetLayoutAnimated(0, 0, 0, ListTemplate.mBase.Width, ListTemplate.mBase.Height)
G Genricke Member Apr 12, 2021 #3 Thanks ! It works ! I would never have found it myself ! ? Upvote 0