As the subject says, the DisabledBackgroundColor has no affect in Xamarin.Android. It works fine in Xamarin.iOS. Here is the Android code I am testing with and attached are screenshots from Android (not working) and iOS (Working).
using Android.App;
using Android.OS;
using System;
using Com.Syncfusion.Calendar;
namespace calendarandroid
{
[Activity(Label = "calendarandroid", MainLauncher = true, Icon = "@mipmap/icon")]
public class MainActivity : Activity
{
CalendarEventCollection eventsCollection = new CalendarEventCollection();
SfCalendar calendar;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
calendar = new SfCalendar(this);
var startDate = DateTime.Today.AddDays(-5);
var endDate = DateTime.Today.AddDays(30);
calendar.ViewMode = Com.Syncfusion.Calendar.Enums.ViewMode.MonthView;
calendar.MinDate = DateTimeToOSDate(startDate);
calendar.MaxDate = DateTimeToOSDate(endDate);
MonthViewSettings monthViewSettings = new MonthViewSettings
{
TodayTextColor = Android.Graphics.Color.Red,
WeekEndTextColor = Android.Graphics.Color.ParseColor("#0990E9"),
DisabledTextColor = Android.Graphics.Color.Green,
DisabledBackgroundColor = Android.Graphics.Color.Gray
};
calendar.MonthViewSettings = monthViewSettings;
SetContentView(calendar);
}
public Java.Util.Calendar DateTimeToOSDate(DateTime dateTime)
{
var javaCalendar = Java.Util.Calendar.Instance;
javaCalendar.Set(dateTime.Year, dateTime.Month - 1, dateTime.Day, dateTime.Hour, dateTime.Minute, dateTime.Second);
return javaCalendar;
}
}
}
Attachment:
Archive_133a88cb.zip