Hi,
I'm trying to get the screen height, which is the
DeviceScreenHeight - NavigationBarHeight -
TitleBarHeight
The code below always give me a 752, but the real screen height is 800.
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
mHeight = metrics.heightPixels;
And if I use onLayoutChange() to get the height of a vertically
"match_parent" view, the height is 696. This is the value I need.
But I want to know how to get this value dynamically so I can get the
proper "height" on different devices.
Android 3.2
Cheers,
Wenshan
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en