Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- MSSQL
- vaadin
- 보조정렬
- IntelliJ
- window
- es6
- mapreduce
- SPC
- Java
- Android
- maVen
- 공정능력
- R
- Express
- Eclipse
- Kotlin
- xPlatform
- Sqoop
- Python
- Spring
- SQL
- mybatis
- table
- react
- JavaScript
- 정렬
- tomcat
- GIT
- NPM
- hadoop
Archives
- Today
- Total
DBILITY
독거 가능성 100% 노후에 라면값이라도 하게 센스를 발휘합시다!😅
Please click on the ad so that I can pay for ramen in my old age!
点击一下广告,让老后吃个泡面钱吧!
老後にラーメン代だけでもするように広告を一回クリックしてください。
WindowMetrics 화면 크기 등 본문
반응형
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
WindowMetrics windowMetrics = getWindowManager().getCurrentWindowMetrics();
Log.e(TAG, windowMetrics.getBounds().width() + " : " + windowMetrics.getBounds().height());
} else {
Display display = getWindowManager().getDefaultDisplay();
DisplayMetrics displayMetrics = new DisplayMetrics();
display.getRealMetrics(displayMetrics);
Log.e(TAG, displayMetrics.widthPixels + " : " + displayMetrics.heightPixels);
}
반응형
'android' 카테고리의 다른 글
android downloded apk file version check and install (0) | 2024.05.09 |
---|---|
android progress bar color change programmatic (0) | 2024.05.08 |
theme (0) | 2024.05.04 |
android shortcut (0) | 2024.05.02 |
android avd localhost (0) | 2024.05.01 |
Comments