Android Question Is there a way to get a ListView Row Height ?

MitchBu

Well-Known Member
Licensed User
Longtime User
I may have a variable number of items to display in a ListView, so I would like to adjust the height of the view according to content.

Is there any way to get the row height in code ?
 

MitchBu

Well-Known Member
Licensed User
Longtime User
OK. I found the way to do it, so I post it here in case someone was looking for the same information :
B4X:
Log("Height: " & ListView1.SingleLineLayout.ItemHeight)

The same property can be changed to modify row height :
B4X:
ListView1.SingleLineLayout.ItemHeight = 30
 
Upvote 0
Top