The conversation between human and AI assistant.
How do I create date picker in Android like Google calendar?
Can you give me an example of using a theme to customize the date picker?
Of course. Here's an example code that sets a custom theme to the DatePickerDialog:

DatePickerDialog datePickerDialog = new DatePickerDialog(context, R.style.MyDatePickerDialogTheme, listener, year, month, day);
datePickerDialog.show();

And here's an example of defining a custom theme:

<style name="MyDatePickerDialogTheme" parent="Theme.AppCompat.Light.Dialog">
    <item name="colorAccent">@color/colorAccent</item>
    <item name="android:textColorPrimary">@color/colorPrimary</item>
    <item name="android:background">@color/colorBackground</item>
</style>

You can replace the color values with your own values to achieve the desired appearance.