Android Question customlistview adding panels

zmrcic

Member
Licensed User
Longtime User
hi....
here is my code....
clv:
pnlClv.Top=lblTitle.Top +lblTitle.Height
pnlClv.Left=0dip
pnlClv.Color=Colors.Black''   0xFFFFA500
pnlClv.Width=Activity.Width
pnlClv.Height=100%y''-lblTitle.Height-imgLogo.Height

CLV1.AsView.Top=0dip
CLV1.AsView.Left=0dip

CLV1.AsView.Width=100%x
CLV1.sv.Width=100%x
CLV1.AsView.Height=100%y
CLV1.AsView.Color=Colors.Red

Dim pp As Panel
pp.Initialize("")
pp.Width = CLV1.AsView.Width
pp.Width=CLV1.sv.Width
pp.Height=300dip
pp.Top=0
pp.Left=0
pp.Color=Colors.Green
CLV1.Add(pp,"")

and I get this
viber_image_2025-09-11_09-12-46-990.jpg


why is clv item not spreading to 100%x(clv width)?
 

mangojack

Expert
Licensed User
Longtime User
Disable Show Scroll Bar and see if that solves the issue.

Capture.PNG
 
Upvote 0
Top