디바이스 화면 해상도 구하기
페이지 정보

본문
int deviceWidth;
int deviceHeight;
Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
deviceWidth = size.x;
deviceHeight = size.y;
- 이전글PNG파일이 아닌 XML파일로 Drawables 파일 지정시 발생되는 에러 (Can't process attribute ... references to other resources are not supported by build-time PNG generation.) 20.01.19
- 다음글웹뷰 화면 꽉차게 설정 20.01.17
댓글목록
등록된 댓글이 없습니다.