Notice
Link
- Today
- Total
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- MariaDB
- mybatis exception
- reactnative
- kill -9
- Activity 전체화면
- CSS
- springboot
- 말줌임 CSS
- 가변영역 스크롤
- 피쉬랜드
- 파티션 빠른 삭제
- Back 키 클릭 감지
- 시간대 테이블생성
- sql exception
- vc++
- springboot 재가동
- view 획득
- 시간대별 통계
- ffmpeg
- rn
- MFC
- 터치좌표 view
- c언어
- 코드로 서버 재실행
- SQL
- pid 찾아 kill
- group by
- CentOS
- MySQL
- 스크롤적용
Archives
개발은 하는건가..
Android 전체 화면 노치 영역 사용 설정하기 본문
반응형
안드로이드 P 이상에서는 전체 화면 시 다음과 같이 Activity 의 window 속성을 설정하여 전체화면 시 노치 영역까지 가득 채우게 해준다.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
Window wnd = getWindow();
if (wnd != null) {
wnd.getAttributes().layoutInDisplayCutoutMode =
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
}
}
'Java, Android' 카테고리의 다른 글
[Android] AlarmManager 의 RTC_WAKEUP 을 통한 작업 수행. (0) | 2022.10.26 |
---|---|
Android 화면 회전(ScreenRotation) (0) | 2022.07.19 |
Android View Animation stop 또는 재시작 (0) | 2022.06.21 |
Android ListView Divider 없에기 (0) | 2022.06.15 |
Android 애니메이션 drawable (0) | 2022.06.14 |
Comments