得到屏幕的Width And Height

来源:互联网 发布:阿里健康 人工智能 编辑:程序博客网 时间:2024/06/05 17:45
WindowManager wm = (WindowManager) getContext()        .getSystemService(Context.WINDOW_SERVICE);int width = wm.getDefaultDisplay().getWidth();int height = wm.getDefaultDisplay().getHeight();
0 0
原创粉丝点击