Q qey Member Jan 24, 2022 #1 Hi i would like to ask how to adjust the clv height. The one highlighted in yellow box B4X: Dim Pnl As B4XView = xui.CreatePanel("") Pnl.SetLayoutAnimated(0,0,0,clvItem.AsView.Width,clvItem.AsView.Height) Pnl.LoadLayout("griditem") lblItem.WrapText = True lblItem.As(JavaObject).RunMethod("setTextAlignment", Array("CENTER")) lblItem.Text = colroot.Get("title") Dim Ico As B4XBitmap = Base64EncodeDecodeImage.Base64StringToImage(colroot.Get("photo")) imgItem.Bitmap = Ico lblAddonPrice1.Text = colroot.Get("charges") clvItem.Add(Pnl,"")
Hi i would like to ask how to adjust the clv height. The one highlighted in yellow box B4X: Dim Pnl As B4XView = xui.CreatePanel("") Pnl.SetLayoutAnimated(0,0,0,clvItem.AsView.Width,clvItem.AsView.Height) Pnl.LoadLayout("griditem") lblItem.WrapText = True lblItem.As(JavaObject).RunMethod("setTextAlignment", Array("CENTER")) lblItem.Text = colroot.Get("title") Dim Ico As B4XBitmap = Base64EncodeDecodeImage.Base64StringToImage(colroot.Get("photo")) imgItem.Bitmap = Ico lblAddonPrice1.Text = colroot.Get("charges") clvItem.Add(Pnl,"")
Lucas Siqueira Active Member Licensed User Longtime User Jan 25, 2022 #2 1) open the item designer that goes inside the clv and get its height. 2) remove the AutoScaleAll line in the clv item designer. 3) change the 200dip by the height of your panel in the designer. B4X: Pnl.SetLayoutAnimated(0,0,0,clvItem.AsView.Width,200dip) Upvote 0
1) open the item designer that goes inside the clv and get its height. 2) remove the AutoScaleAll line in the clv item designer. 3) change the 200dip by the height of your panel in the designer. B4X: Pnl.SetLayoutAnimated(0,0,0,clvItem.AsView.Width,200dip)
Q qey Member Jan 25, 2022 #3 Lucas Siqueira said: 1) open the item designer that goes inside the clv and get its height. 2) remove the AutoScaleAll line in the clv item designer. 3) change the 200dip by the height of your panel in the designer. B4X: Pnl.SetLayoutAnimated(0,0,0,clvItem.AsView.Width,200dip) Click to expand... Hi Lucas ! Thank you for your help. I try it already and it works for my side. Thank you !!!! Upvote 0
Lucas Siqueira said: 1) open the item designer that goes inside the clv and get its height. 2) remove the AutoScaleAll line in the clv item designer. 3) change the 200dip by the height of your panel in the designer. B4X: Pnl.SetLayoutAnimated(0,0,0,clvItem.AsView.Width,200dip) Click to expand... Hi Lucas ! Thank you for your help. I try it already and it works for my side. Thank you !!!!