Android Question [SOLVED] CustomListView last visible item cutted (not all items are showed)

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone,
i've a clv filled with textitems, the last visible one is cutted. (but acutally there is one more after that is not visible)
Blue is the panel in wich the clv is contained, Red is the Clv itself
clv_cut.jpg


Why the last item (Farmaco 4) is cut out? i can't scroll more

Thanks in advance
 
Last edited:

toby

Well-Known Member
Licensed User
Longtime User
You could help others help you by providing a sample project demonstrating the problem.
 
Upvote 0

Mike1970

Well-Known Member
Licensed User
Longtime User
You could help others help you by providing a sample project demonstrating the problem.
I don’t know how to recreate it..
the only thing I did is to change the size of the panel that contains the CLV programmatically, using SetLayoutAnimated, but after that I used the the same istruction on the CLV to adapt it to the new parent size
 
Upvote 0

Mike1970

Well-Known Member
Licensed User
Longtime User
Ok the solution is the following:

When changing the Height by code, then you should "Reset" the CLV elements with:
B4X:
clv.GetBase.Height = YourHeight
clv.sv.Height = YourHeight
And if you changed also the width, you should use the .Base_Resize method.

Credits to this post
 
Upvote 0
Top