zoha131
11/26/2020, 8:25 PMDatePicker
inside a AndroidView
but the final result is laggy. It does not scroll smoothly and I loose the snapping behavior. Can anyone please explain why this is happening?
@Composable
fun SliderDate(
modifier: Modifier
) {
AndroidView(
viewBlock = { context ->
DatePicker(context).apply {
init(2020, 3, 3){ picker,year,month,day ->
Timber.d("year: $year, month: $month, day: $day")
}
}
},
modifier = modifier,
update = { datePicker ->
}
)
}