Hi i want to adjust my DatePickerDialog
, and instead of buttons at the bottom (displayed on image below) i just want to make blue text.
Here is how i created DatePickerDialog
private val birthdayDate by lazy {
Calendar.getInstance()
}
private val datePicker by lazy {
DatePickerDialog(
context,
R.style.MyDatePickerDialogTheme,
this,
birthdayDate.get(Calendar.YEAR),
birthdayDate.get(Calendar.MONTH),
birthdayDate.get(Calendar.DAY_OF_MONTH)
).also {
it.datePicker.maxDate = Calendar.getInstance().timeInMillis
}
}
Then i just call show method to display the dialog. I think problem is somewhere in my style
, but i can not find where. Any help will be highly appreciated.
<style name="MyDatePickerDialogTheme" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">@color/colorPrimary</item>
</style>