You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date netDate = (new Date(timeStamp));
int colorCode = Color.parseColor("#33b5e5");
ColorDrawable green = new ColorDrawable(Color.GREEN);
caldroidFragment.setTextColorForDate(R.color.colorPrimary,netDate);
caldroidFragment.setBackgroundDrawableForDate(green,netDate);
caldroidFragment.refreshView();
The text was updated successfully, but these errors were encountered:
I was having this problem as well. I then found out that my dateString that I was parsing with SimpleDateFormat was actually not the right format.
Example: String dateString = 2019-01-08 //I had thought this was actually 01-08-2019 SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-yyyy") Date date = sdf.parse(dateString);
After correcting the date format string to yyyy-MM-dd the calendar set the colors properly!!
Below is my code:
The text was updated successfully, but these errors were encountered: