4

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:

Activity screenshot

dateDialog = new DatePickerDialog(
    currentCtx,
    R.style.datepicker,
    dateSetListener,
    jsonDate.year,
    jsonDate.month,
    jsonDate.day
);
Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Amit Kumar
  • 754
  • 7
  • 19

0 Answers0