んー なんだろ。。
- Android Support Preference v7 Fix
- Android Support Preference v7 Fix - DateTimePickers
- DateTimePicker (DatePickerPreference / TimePickerPreference で必要)
github.com
バージョンは Xamarin 側の Support Library が 27.1.0 を skip しているため,27.0.2 の対応バージョンを使用。
問題は,コンパイル済み values.xml でおかしな状態になっていること……
1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'maxDate'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'dateTextAppearance'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(28): error APT0000: No resource found that matches the given name: attr 'maxDate'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(28): error APT0000: No resource found that matches the given name: attr 'minDate'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'weekDayTextAppearance'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'calendarViewShown'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'datePickerMode'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'dtp_legacyLayout'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'dateTextAppearance'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'weekDayTextAppearance'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'calendarViewShown'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'datePickerMode'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(33): error APT0000: No resource found that matches the given name: attr 'headerBackground'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(34): error APT0000: No resource found that matches the given name: attr 'headerBackground'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'headerBackground'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'numbersBackgroundColor'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'dtp_legacyLayout'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'headerBackground'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'numbersBackgroundColor'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'numbersInnerTextColor'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'numbersSelectorColor'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'numbersTextColor'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'timePickerMode'. 1>..\obj\Debug\lp\37\jl\res\values\values.xml(35): error APT0000: No resource found that matches the given name: attr 'timePickerMode'.
values.xml を見る限り,空白になっているんですが,元のファイルでは定義されているので,不具合なのかな? とか……?
DateTimePicker/styles.xml at v1.0.5 · Gericop/DateTimePicker · GitHub
TimePickerPreference が欲しいだけなので,自作した方が早いのかな…… あまり自作したくないのだけど……
しかし Xamarin.Android のやる気があまり感じられないのはなぜだろう? 色々とクラッシュしたりするし,原因不明のクラッシュが多くて…… (領域を Allocate するときにクラッシュすることが多い)。あと Color の colorspace も対応されていないし。
まあ,Xamarin Android は詳しくないので,報告できるレベルのスキルがないので,不具合だとしてもスルーですね。