获得系统分辨率
/* 取得屏幕对象 */
Display display= ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
/* 取得屏幕解析像素 */
intScreenX = dm.widthPixels;
intScreenY = dm.heightPixels;
controlHeight = intScreenY/4;
发布时间: 2012-12-18 12:43:41 作者: rapoo
获得系统分辨率
/* 取得屏幕对象 */
Display display= ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
/* 取得屏幕解析像素 */
intScreenX = dm.widthPixels;
intScreenY = dm.heightPixels;
controlHeight = intScreenY/4;