今天学习了安卓的日期控件
CardDatePickerDialog.builder(this)
.setTitle("SET MAX DATE")
.setOnChoose(listener = object :CardDatePickerDialog.OnChooseListener{
override fun onChoose(millisecond: Long) {
}
}).build().show()
CardDatePickerDialog.builder(context)
.setTitle("CARD DATE PICKER DIALOG")
.setDisplayType(displayList)
.setBackGroundModel(model)
.showBackNow(true)
.setDefaultTime(defaultDate)
.setMaxTime(maxDate)
.setMinTime(minDate)
.setThemeColor(color)
.showDateLabel(true)
.showFocusDateInfo(true)
.setLabelText("年","月","日","时","分")
.setOnChoose("选择",object :CardDatePickerDialog.OnChooseListener{
override fun onChoose(millisecond: Long) {
}
})
.setOnCancel("关闭",object :CardDatePickerDialog.OnCancelListener{
override fun onCancel() {
}
}).build().show()