일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 안드로이드
- AppBarLayout
- Behavior
- Algorithm
- 알림
- ViewModel
- lifecycle
- CollapsingToolbarLayout
- Android
- Coroutine
- recyclerview
- 알고리즘
- CustomView
- sqlite
- activity
- HTTP
- Navigation
- room
- onMeasure
- onLayout
- notification
- LiveData
- 백준
- hilt
- 코틀린
- kotlin
- DataBinding
- CoordinatorLayout
- View
- BOJ
- 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를 호출한 다음 바꿔야한다.