Hi all,
i have a strange stuation:
I am loading a layout to a panel which contains two labels and a imageview.
I cannot change imageview.height after loading layout on panel.
Here is Sample Code
everything works fine except imageview not change his height ???
Any ideas pls ?
i have a strange stuation:
I am loading a layout to a panel which contains two labels and a imageview.
I cannot change imageview.height after loading layout on panel.
Here is Sample Code
B4X:
Private pg As Page
Private contentScroller As ScrollView
Private titleLabel As Label
Private picture As ImageView
Private datelabel As Label
' main layout contains a scrollview named as contentScroller
pg.Initialize("pg")
pg.RootPanel.LoadLayout("main")
dim p as panel
p.Initialize("galleryitem")
'galleryitem layout contains imageview and labels
p.LoadLayout("galleryitem")
'width and height are image dimentions and 95dip is label heights in total.
p.Width = width
p.Height = height + 95dip
picture .width =width
picture .height = height
contentScroller.Panel.AddView(p,left,top,nexttop,p.Width,p.Height)
everything works fine except imageview not change his height ???
Any ideas pls ?