Android Question Customlistview itemheight different devices

DBernaert

Member
Licensed User
Hello,

I'm using xcustomlistview (B4XPages).
It works great.
I add items using

p.SetLayoutAnimated(0, 0, 0, 100%x, 40dip)
p.LoadLayout("MenuItem")
LblMenuDescription.Text = Description

It works great on the device I'm building on (Iphone), but when viewing the app on an Ipad, the height of the items is not correct (not high enough).
The items i add have AutoscaleAll in the script.
What would be the best method to get the exact same height on each different device?
Should i remove AutoscaleAll from the items?

Thanks for your feedback.
 

DBernaert

Member
Licensed User
Hi Alexander,

Thank you for the feedback.
What would be the correct way?
1. Remove AutoscaleAll from the detail items
2. get the width of the listview?
 
Upvote 0
Top