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
- CoordinatorLayout
- CustomView
- 알림
- lifecycle
- activity
- Behavior
- DataBinding
- 코틀린
- Coroutine
- Android
- ViewModel
- 알고리즘
- recyclerview
- notification
- Navigation
- 백준
- 안드로이드
- Algorithm
- View
- CollapsingToolbarLayout
- AppBarLayout
- sqlite
- LiveData
- HTTP
- onLayout
- kotlin
- onMeasure
- room
- BOJ
- hilt
Archives
- Today
- Total
목록삽질 (18)
개발일지

안드로이드에서 뷰에 표시할 내용이 많을 때 Scroll View를 사용해서 해결할 수 있다. 하지만 Scroll View를 사용하면 자식 뷰를 하나만 가질 수 있고, 자식 뷰는 wrap_content속성을 사용해야 한다. 하지만 wrap_content를 사용하면 뷰들이 화면을 꽉 채우지 못했을 때 빈 공간이 생긴다. Scroll View에 fillViewport를 추가하자!!!
삽질
2020. 12. 4. 18:00
삽질 - Android ForegroundService
권한설정 Oreo이상에서 ForegroundService는 권한이 필요하다. startForeground startForeground에서 id값은 0이면 안된다. 오류 startForeground(0, NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID).build()) 해결 startForeground(1, NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID).build())
삽질
2020. 11. 29. 16:10