Use LazyLocalDatePicker for LocalDate support
masterIf you are using the ThreeTenABP library, use LazyLocalDatePicker instead of LazyDatePicker. This provides methods that work with LocalDate instead of java.util.Date.
XML Usage
<com.mikhaellopez.lazydatepicker.LazyLocalDatePicker
android:id="@+id/lazyDatePicker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:ldp_text_color="@color/primary"
app:ldp_hint_color="@color/accent"
app:ldp_date_format="mm-dd-yyyy" />Kotlin Usage
lazyLocalDatePicker.setDateFormat(LazyDatePicker.DateFormat.MM_DD_YYYY)
lazyLocalDatePicker.setMinLocalDate(minDate)
lazyLocalDatePicker.setMaxLocalDate(maxDate)
// The localdate when is selected
lazyLocalDatePicker.setOnLocalDatePickListener { localDateSelected ->
//...
}
// True or false when date is selected
lazyLocalDatePicker.setOnLocalDateSelectedListener { dateSelected ->
//...
}