Android Question How do I change the size of the list in the dialog box ?

Genricke

Member
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:

Dialog.png


How can I increase the size of the list by the entire window ?
Thanks ! :)
 
Top