xamarin.android - How to set the android datepicker to spinner (not calendar) mode in Xamarin Forms? -


when selecting datepicker control in xamarin forms on android device calendar mode view of datepicker shown. how can change show spinner mode?

the sample found update styles.xml

here have, not working

<resources>     <style name="mytheme.base"     parent="@android:style/theme.holo.light.darkactionbar">     </style>      <style name="mytheme" parent="mytheme.base">         <item name="android:actionbarstyle">@style/mytheme.actionbarstyle</item>         <item name="android:dialogtheme">@style/mydialogtheme</item>         <item name="android:datepickerstyle">@style/mydatepicker</item>     </style>      <style name="mytheme.actionbarstyle"     parent="@android:style/widget.holo.light.actionbar">         <item name="android:titletextstyle">@style/mytheme.actionbar.titletextstyle</item>         <item name="android:background">@color/material_blue_500</item>     </style>      <style name="mytheme.actionbar.titletextstyle" parent="@android:style/textappearance.holo.widget.actionbar.title">         <item name="android:textcolor">@android:color/white</item>     </style>      <style name="mydialogtheme" parent="android:theme.material.dialog">         <item name="android:datepickerstyle">@style/mydatepicker</item>     </style>      <style name="mydatepicker" parent="android:widget.material.datepicker">         <item name="android:datepickermode">spinner</item>     </style> </resources> 

here resources/values/styles.xml worked me

<?xml version="1.0" encoding="utf-8" ?> <resources>      <style name="mytheme.base" parent="@android:style/theme.holo.light.darkactionbar">          <item name="android:dialogtheme">@style/mydialogtheme</item>      </style>      <style name="mytheme" parent="mytheme.base">         <item name="android:actionbarstyle">@style/mytheme.actionbarstyle</item>         <item name="android:dialogtheme">@style/mydialogtheme</item>      </style>      <style name="mydialogtheme" parent="android:theme.material.dialog">         <item name="android:datepickerstyle">@style/mydatepicker</item>     </style>      <style name="mydatepicker" parent="android:widget.material.datepicker">         <item name="android:datepickermode">spinner</item>     </style>     <style name="cust_tabviewstyle">         <item name="android:textcolor">@color/material_blue_500</item>      </style>  </resources> 

then set theme in properties/androidmanifest.xml modifying application node this

<application android:label="myapp" android:icon="@drawable/icon" android:theme="@style/mytheme"> 

Comments