I had a similar problem when trying to generate a Jetpack Compose wrapper where I've created a date picker in wheel style. Fixed it like this (xml needed in styles.xml but no layout files needed):
In styles.xml
<style name="SpinnerMode" parent="android:Widget.Material.DatePicker">
<item name="android:datePickerMode">spinner</item>
<item name="android:calendarViewShown">false</item>
</style>
<style name="datepicker_dark">
<item name="android:datePickerStyle">@style/SpinnerMode</item>
<!-- Text color -->
<item name="android:textColorPrimary">...</item>
</style>
And instantiate the Picker like this:
val customContext = androidx.appcompat.view.ContextThemeWrapper(context, R.style.datepicker_dark)
DatePicker(customContext).apply {
this.updateDate(2023, 6, 1)
// ...
}