我在2个字段中选择了事件的开始日期和结束日期,因此条件与“开始日期小于结束日期”相符。
我需要更改无效日期的颜色,在上述条件下(开始日期从今天的日期开始),我的日历视图具有如下所示的样式
SELECT DeviceID,RecordId
FROM ResultSet
GROUP BY DeviceID,RecordId
HAVING COUNT(1)>1;
答案 0 :(得分:0)
将此样式放入datePicker XML-
<style name="PickerDialogTheme" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">@color/accent</item>
<item name="android:datePickerStyle">@style/DatePickerStyle</item>
<item name="android:colorAccent">@color/primDark</item>
<style name="DatePickerStyle" parent="@android:style/Widget.Material.Light.DatePicker">
<item name="android:headerBackground">@color/prim</item>
<item name="android:calendarTextColor">@color/primDark</item>
<item name="android:dayOfWeekBackground">@color/primDark</item>
<item name="android:yearListSelectorColor">@color/accent</item>
<item name="android:datePickerMode">calendar</item>
<item name="android:minDate">01/01/2000</item>
答案 1 :(得分:0)
If you want to customize your calendar for any requirements then please go
https://github.com/prolificinteractive/material-calendarview
它可能会对您有所帮助。