I'm trying to reproduce some behaviour that I had in B4A in B4i.
I have a custom list view which is a list of custom views. The custom views size is dependant upon the size of its contents.
Also I need to be able to set the font using CSBuilder.
Neither seems to be working and I have run into a brick wall. Does anyone have any ideas.
I have attached an example. The colours are there so that you can see the size of the elements.
First: The Layout used by the Custom List View needed some more constraints set to ensure that the size of the back panel is the maximum size of it parent. Also the size of the label needed to be adjusted in the layout script as well.
Second: To allow the fonts to be preserved, the AutoScaleAll needed to be removed from this layout.
Now works perfectly. I have uploaded the sample again for reference.
The odd thing is that the code in the first example will work fine for B4A. I Suppose this is one of those differences...