본문 바로가기

개발일지

검색하기
개발일지
프로필사진 강태종

  • Programming (프로그래밍) (212)
    • Android (안드로이드) (99)
      • RecyclerView (14)
      • Room (7)
      • Databinding (6)
      • CoordinatorLayout (4)
      • Lifecycle (5)
      • HTTP (4)
      • Hilt (4)
      • Navigation (5)
      • View (8)
      • OAuth (4)
      • Paging (4)
      • Notification (5)
      • GestureLayout (0)
      • Widget (2)
    • 삽질 (18)
    • Algorithm (알고리즘) (34)
    • Kotlin (코틀린) (38)
    • Computer Science (4)
    • Design Pattern (디자인 패턴) (5)
    • Problem Solving (6)
    • Database (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • onMeasure
  • lifecycle
  • DataBinding
  • 코틀린
  • sqlite
  • Behavior
  • HTTP
  • 알고리즘
  • recyclerview
  • CustomView
  • Algorithm
  • BOJ
  • notification
  • ViewModel
  • LiveData
  • hilt
  • CollapsingToolbarLayout
  • CoordinatorLayout
  • Coroutine
  • 백준
  • Navigation
  • View
  • onLayout
  • room
  • activity
  • Android
  • AppBarLayout
  • 알림
  • 안드로이드
  • kotlin
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록다이로그 (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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바