Getting screen height before first display?
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2009-12-03T14:12:52Z
Indexed on
2010/03/26
0:03 UTC
Read the original article
Hit count: 131
android
|android-sdk
Hi,
I have a ListView. I populate it with 8 items, that's all that fits vertically on the G1. Some of my users are saying the Droid has a taller screen height, and so I can probably add one or two more items to the ListView to take up the additional space provided.
How could I measure the available height the screen offers at startup, before the UI is displayed? If I see the height can fit more than 8 items, I'd like to add one or two more rows,
Thanks
© Stack Overflow or respective owner