标签:
DisplayMetrics dm;
dm = new DisplayMetrics();
WindowManager wm = getContext().getWindowManager();
wm.getDefaultDisplay().getMetrics(dm);
int w = dm.widthPixels;
int h = dm.heightPixels;
标签:
原文地址:http://www.cnblogs.com/benniao/p/4572214.html