Hello,
So, we came from here; I'm building a customlistview with each item being a panel constructed with the designer and loaded with loadlayout.
The issue is that each panel has one or several autosized labels (according to font sizes, for example, among other stuff), so each panel will have different height. Not having the height is a problem when I add the item into the customlistview.
@LucaMs suggested adding an invisible panel into the activity to get (derive?) the height. But I have the same issue: activity.addview also receives the height as a parameter.
Is the solution to add a 100%y (invisible) panel, measuring each height of the items on it, and so calculate the total height of the panel?
Regards!
So, we came from here; I'm building a customlistview with each item being a panel constructed with the designer and loaded with loadlayout.
The issue is that each panel has one or several autosized labels (according to font sizes, for example, among other stuff), so each panel will have different height. Not having the height is a problem when I add the item into the customlistview.
@LucaMs suggested adding an invisible panel into the activity to get (derive?) the height. But I have the same issue: activity.addview also receives the height as a parameter.
Is the solution to add a 100%y (invisible) panel, measuring each height of the items on it, and so calculate the total height of the panel?
Regards!