I have a Timepicker as below:
<StackLayout x:Name="stl1" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Orientation="Vertical" > <Label Text="Date" /> <DatePicker x:Name="dat1" HorizontalOptions="FillAndExpand" /> <Label Text="Time" /> <TimePicker x:Name="tim1" HorizontalOptions="FillAndExpand" /> </StackLayout>
As soon as I click it on-screen I get this error:
Android.Views.InflateException: 'Binary XML file line #20: Error inflating class android.widget.TimePicker'
There is no code-behind related to the TimePicker and the DatePicker works just fine. I have tried cleaning and rebuilding the solution but that did nothing.
I have seen some mention of a similar error when the time picker is in a scroll view but I have it in a simple StackLayout as above.
This is on version 126.96.36.1991640.