Android calendarview not showing month and year from Lollipop
Android CalendarView not Android DatePicker
I have used this code for below lollipop versions and it worked but from lollipop it is not working
try
{
Class<?> cvClass = calender.getClass();
Field field = cvClass.getDeclaredField("mMonthName");
field.setAccessible(true);
try
{
TextView tv = (TextView) field.get(calender);
tv.setTextColor(Color.BLACK);
}
catch (IllegalArgumentException e)
{
e.printStackTrace();
}
catch (IllegalAccessException e)
{
e.printStackTrace();
}
}
catch (NoSuchFieldException e)
{
e.printStackTrace();
}