06-07-2014 09:08 AM
I have a list view with two hard coded items in it. I'd like to absoultely position the list view so that it's bottom edge is at a certain coordinate on the screen. (so that it's directly above another aboslutely positioned item on the screen)
To do this, I need to know the height of the list view. I can estimate that by multiplying the number of items in the listview by 111, but that is obviously very brittle.
What's the right way to do this?
Solved! Go to Solution.
06-07-2014 12:09 PM
This has been asked a number of times and of course it's best not to hard code the values as they vary across devices and may change in the future.
... you can use a layoutupdatehandler to dynamically find it...
06-08-2014 05:51 PM
Ah, right. I actually knew that but then forgot I knew it! My app actually uses this technique in one spot to get the size of the screen. Oddly when I searched the forums I couldn't find any meaningful results.