Android获得屏幕尺寸的代码:
class="brush:java;gutter:true;"> // 获得屏幕尺寸 public void get_screen(){ wid_scr = getWindowManager().getDefaultDisplay().getWidth(); hei_scr = getWindowManager().getDefaultDisplay().getHeight(); }