diff --git a/android/HowAboutTrip/app/src/main/java/com/project/how/view/dialog/DatePickerDialog.kt b/android/HowAboutTrip/app/src/main/java/com/project/how/view/dialog/DatePickerDialog.kt index b3c45ffa..820e387e 100644 --- a/android/HowAboutTrip/app/src/main/java/com/project/how/view/dialog/DatePickerDialog.kt +++ b/android/HowAboutTrip/app/src/main/java/com/project/how/view/dialog/DatePickerDialog.kt @@ -64,7 +64,7 @@ class DatePickerDialog(private val data : DaysSchedule, private val dates : List text = d id = View.generateViewId() if (d == dates[selectedDays]) - check(true) + isChecked = true } binding.radio.addView(rdbtn) } diff --git a/android/HowAboutTrip/app/src/main/java/com/project/how/view_model/CalendarViewModel.kt b/android/HowAboutTrip/app/src/main/java/com/project/how/view_model/CalendarViewModel.kt index adf3facf..3348115a 100644 --- a/android/HowAboutTrip/app/src/main/java/com/project/how/view_model/CalendarViewModel.kt +++ b/android/HowAboutTrip/app/src/main/java/com/project/how/view_model/CalendarViewModel.kt @@ -14,8 +14,6 @@ class CalendarViewModel : ViewModel() { val selectedDate : LiveData get() = _selectedDate - fun init() : Flow> = calendarRepository.init() - fun plusSelectedDate() : Flow> = calendarRepository.plusSelectedDate() fun minusSelectedDate() : Flow> = calendarRepository.minusSelectedDate() diff --git a/android/HowAboutTrip/app/src/main/res/layout/dialog_datepicker.xml b/android/HowAboutTrip/app/src/main/res/layout/dialog_datepicker.xml index aae56f05..837ba148 100644 --- a/android/HowAboutTrip/app/src/main/res/layout/dialog_datepicker.xml +++ b/android/HowAboutTrip/app/src/main/res/layout/dialog_datepicker.xml @@ -22,29 +22,20 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - - - - - + + android:orientation="vertical" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> - + +