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

Context (맥락) Android Developer Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcasting and receiving intents, etc. 번역 응용 프로그램 환경에 대한 글로벌 정보에 대한 인터..

Dialog Activity나 Fragment과 다른 작은 화면의 창입니다. 특정 작업전에 입력을 받거나 알람용도로 쓰입니다. DatePickerDialog 달력에서 날짜를 선택하여 Listener를 통해 값을 받을 수 있다. private fun initOnDatePicker() { binding.setOnDatePicker { val calendar = GregorianCalendar() DatePickerDialog(requireContext(), { dialog, year, month, dayOfMonth -> binding.result = """ Dialog : ${dialog.id} Event : ${SimpleDateFormat.getDateInstance().format(GregorianC..
안드로이드에서 Dialog를 Custom해서 만들 때 layout_width와 layout_height를 match_parent로 해도 꽉 차지 않는데 이는 Dialog의 window가 wrap_content이기 때문이다. => window의 크기를 바꾸면 된다. window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT) 반드시 setContentView를 호출한 다음 바꿔야한다.