Changing background color of previous/next month cells

Thread is closed for posting
2 posts, 1 answers
  1. Alex
    Alex avatar
    2 posts
    Member since:
    Mar 2015

    Posted 25 Mar 2015 Link to this post

    I can see that there is a way to get the color through `DateCellBackgroundColorDisabled` (I'm using Xamarin for android here) but not set it. Is there a setter somewhere? If not what would be the simplest way to achieve it?

    Help will be greatly appreciated,
  2. Answer
    Antony Jekov
    Antony Jekov avatar
    88 posts

    Posted 26 Mar 2015 Link to this post

    Hello Alex,

    Thank you for contacting the Android team.

    I can see the properties are being mapped as read-only, which is not intended. I will make sure this is logged and checked. In the meantime, you can use the currently available method like so:
    calendarView.Adapter.SetDateCellBackgroundColor(Android.Graphics.Color.PaleVioletRed, Android.Graphics.Color.Purple);

    I hope this is helpful. Please let me know if you need something else regarding the cells styling. Thank you for reporting this, so we can make sure the mappings are correct.

    Thank you for your time and all best!

    Antony Jekov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top