반응형
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
- setBackgroundResource
- 광 센서
- BottomSheetDialog
- 금속 탐지기 센서
- Android
- LayoutParmas
- 온라인IDE
- powercfg
- Kotlin
- 온라인무료코딩사이트
- 온라인에디터
- 걸음수 감지 센서
- 회전 센서
- 온라인코딩
- utf8mb4
- 동영상 실행
- Android Studio 3.6
- Aplha
- phpstorm
- 코틀린
- RecyclerView
- 자격증
- lateinit
- 웹코드빌드
- 걸음 감지 센서
- 자기장 센서
- ARGB
- Exoplayer
- mysql 5.7
Archives
- Today
- Total
목록tablet (1)
Memory
[ANDROID/KOTLIN] 태블릿 기기인지 코드로 확인하는 방법
fun isTablet(context: Context): Boolean { val xlarge = context.resources .configuration.screenLayout and Configuration.SCREENLAYOUT_SIZE_MASK === 4 val large = context.resources .configuration.screenLayout and Configuration.SCREENLAYOUT_SIZE_MASK === Configuration.SCREENLAYOUT_SIZE_LARGE return xlarge or large } [참고] 출처 - stackoverflow.com/questions/16784101/how-to-find-tablet-or-phone-in-androi..
IT/ANDROID
2021. 1. 23. 14:22