I am opening Android date picker on a dialog using custom style.
This implementation is working as expected but sometime it displays unexpected UI.
Below is my code:
Style:
<style name="datepicker" parent="Theme.AppCompat.Light.Dialog">
<item name="colorPrimary">@color/header_color</item>
<item name="colorPrimaryDark">@color/header_color</item>
<item name="colorAccent">@color/header_color</item>
</style>
Activity:
dateDialog = new DatePickerDialog(
currentCtx,
R.style.datepicker,
dateSetListener,
jsonDate.year,
jsonDate.month,
jsonDate.day
);