Android Question CustomelistView Height And Width

After Add CustomelistView in Designe...
I want change Width And Height but not work this:
B4x:
CustomelistView.AsView.Height
CustomelistView.AsView.Width

But this worked:
B4x:
CustomelistView.AsView.Top
CustomelistView.AsView.Left
 

teddybear

Well-Known Member
Licensed User
After Add CustomelistView in Designe...
I want change Width And Height but not work this:
B4x:
CustomelistView.AsView.Height
CustomelistView.AsView.Width

But this worked:
B4x:
CustomelistView.AsView.Top
CustomelistView.AsView.Left
They work, if backgroud color of CLV is set, you will see the change.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
CustomelistView.AsView.Height CustomelistView.AsView.Width
You need a "Base_Resize" :
B4X:
xclv.AsView.Width = 200dip
xclv.AsView.Height = 200dip
xclv.Base_Resize(xclv.AsView.Width,xclv.AsView.Height) 'Add this
 
Upvote 1
Solution
Top