roboto-calendar-view
roboto-calendar-view copied to clipboard
Calendar year is not displaying
Calendar year is not displaying what should i do ?
Thank You Help Appreciated.
Try to change the method inside the RobotoCalendarView.java to this
private void setUpMonthLayout() {
String dateText = new DateFormatSymbols(Locale.getDefault()).getMonths()[currentCalendar.get(Calendar.MONTH)];
dateText = dateText.substring(0, 1).toUpperCase() + dateText.subSequence(1, dateText.length());
Calendar calendar = Calendar.getInstance();
/*if (currentCalendar.get(Calendar.YEAR) == calendar.get(Calendar.YEAR)) {
dateTitle.setText(dateText);
} else {
dateTitle.setText(String.format("%s %s", dateText, currentCalendar.get(Calendar.YEAR)));
}*/
dateTitle.setText(String.format("%s, %s", dateText, currentCalendar.get(Calendar.YEAR)));
}