Random Date UI

I open the Android date picker in a dialog using my own style.
This implementation works as expected, but once it displays an unexpected interface.

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
);
+4
source share

Source: https://habr.com/ru/post/1651382/


All Articles