Hi. My app is coming along nicely and now I am using the emulator to test functionality on different size devices. I have come across a problem...
My app contains a (bitmap and two lines) list view, the content of which is loaded from a .CSV file. I have created the 3 'standard' layout variants and have used Designer to position everything. Unfortunately, designer doesn't allow me to change the text size for list view lines one and two.
Therefore I have assumed I have to recognise the layout size currently in use and then hard code the textsize accordingly.
I'm guessing this can be done? Or is there a simple way?
Activity.LoadLayout returns a LayoutValues object. This object holds the values of the loaded variant.
However there is a simpler solution. First call AutoScaleAll in the designer script. Then set the ListView text size (in code) to match the size of one of the other views.
TYVM for your replies. I had actually tried the LayoutValues solution mentioned by Erel, but it didn't appear to work.
Does the technique work when using an emulator? (ie if emulating a 5" phone, do the LayoutValues reflect the variant which would be used on an actual 5" device?)