Android Question B4XSearchTemplate: Change height and width of view

mrossen

Active Member
Licensed User
Longtime User
Hi,

I used post # 7 in this thread :

Now I would like to set the width also. I tried somethging like this, but it do not work.

Any one have got this to work

B4X:
SearchTemplate.MaxNumberOfItemsToShow = 1000
    Dim pane As Panel = SearchTemplate.GetPanel(ShowLPSDialog)                       
    pane.Height = 60%y                                                                     
    pane.Width = 50%x
    
    Dim lv As B4XView = SearchTemplate.CustomListView1.AsView         
    lv.Height=pane.Height                                                                     
    Dim sv As B4XView=lv.GetView(0)                                                     
    sv.Height=pane.Height                                                                     
    
    Dim lv As B4XView = SearchTemplate.CustomListView1.AsView             
    lv.width=pane.width                                                                     
    Dim sv As B4XView=lv.GetView(0)                                           
    sv.width=pane.width

Mogens
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…