At first I had a problem with the DatePicker whose dialog color did not match the color accent specified in the Android project.
After some research on Google, I found a workaround of creating a class inheriting from DatePicker and creating a renderer in which I override the CreateDatePickerDialog method. Finally, by applying a style to the key android:datePickerDialogTheme, this allows the correct color to be taken into account.
But, when I place my new control in a Frame layout, the color accent is again lost.
Description
At first I had a problem with the DatePicker whose dialog color did not match the color accent specified in the Android project. After some research on Google, I found a workaround of creating a class inheriting from DatePicker and creating a renderer in which I override the CreateDatePickerDialog method. Finally, by applying a style to the key android:datePickerDialogTheme, this allows the correct color to be taken into account.
But, when I place my new control in a Frame layout, the color accent is again lost.
Steps to Reproduce
Expected Behavior
The color of the dialog may be the color accent
Actual Behavior
It's the default android color, but not the specified color accent.
Basic Information