/**
* 获取分辨率
*/
public static String getScreen(Context context) {
if (context == null) {
return "";
}
DisplayMetrics dm = context.getResources().getDisplayMetrics();
int screenWidth = dm.widthPixels;
int screenHeight = dm.heightPixels;
return screenWidth + "*" + screenHeight;
}
获取手机分辨率
猜你喜欢
转载自blog.csdn.net/qq_24542767/article/details/103579736
今日推荐
周排行