Sunday, May 29, 2016

Android 디바이스 화면 크기 구하기

DisplayMetrics dm = getApplicationContext().getResources().getDisplayMetrics();
int width = dm.widthPixels;
int height = dm.heightPixels;

No comments:

Post a Comment