获取android屏幕大小

int width = this.getWindowManager().getDefaultDisplay().getWidth();
int hight = this.getWindowManager().getDefaultDisplay().getHeight();
        
System.out.println(width);
System.out.println(hight);
 

你可能感兴趣的:(android)