Android Question CustomelistView Height And Width

After Add CustomelistView in Designe...
I want change Width And Height but not work this:
[CODE lang="b4x" title="B4x"]CustomelistView.AsView.Height
CustomelistView.AsView.Width[/CODE]

But this worked:
[CODE lang="b4x" title="B4x"]CustomelistView.AsView.Top
CustomelistView.AsView.Left[/CODE]
 
After Add CustomelistView in Designe...
I want change Width And Height but not work this:
[CODE lang="b4x" title="B4x"]CustomelistView.AsView.Height
CustomelistView.AsView.Width[/CODE]

But this worked:
[CODE lang="b4x" title="B4x"]CustomelistView.AsView.Top
CustomelistView.AsView.Left[/CODE]
They work, if backgroud color of CLV is set, you will see the change.
 
Upvote 0
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
Back
Top