Identifying the current variant

malcfreem

Member
Licensed User
Longtime User
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?

Thanks in anticipation of any help u can give me
 

malcfreem

Member
Licensed User
Longtime User
Thanks but..

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?)

Cheers,

Malcolm
 
Upvote 0
Top