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
- Navigation
- ViewModel
- View
- Android
- DataBinding
- sqlite
- room
- 알고리즘
- 백준
- BOJ
- CoordinatorLayout
- recyclerview
- Coroutine
- Algorithm
- hilt
- AppBarLayout
- onMeasure
- kotlin
- HTTP
- 알림
- CollapsingToolbarLayout
- LiveData
- Behavior
- activity
- 안드로이드
- notification
- 코틀린
- lifecycle
- CustomView
- onLayout
Archives
- Today
- Total
목록resize (1)
개발일지
삽질 - Android Dialog match_parent
안드로이드에서 Dialog를 Custom해서 만들 때 layout_width와 layout_height를 match_parent로 해도 꽉 차지 않는데 이는 Dialog의 window가 wrap_content이기 때문이다. => window의 크기를 바꾸면 된다. window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT) 반드시 setContentView를 호출한 다음 바꿔야한다.
삽질
2021. 2. 8. 23:12