android获得屏幕的大小
final Display display = this.getWindow().getWindowManager().getDefaultDisplay();
if (display != null)
{
// 获取屏幕大小
screenWidth = display.getWidth();
screenHeight = display.getHeight();
}
final Display display = this.getWindow().getWindowManager().getDefaultDisplay();
if (display != null)
{
// 获取屏幕大小
screenWidth = display.getWidth();
screenHeight = display.getHeight();
}
摘自 知识空间
补充:移动开发 , Android ,