如何从 CalendarView 中删除月份名称 header

How to remove the month name from CalendarView header

我想删除带有月份名称的 header,我只想显示日期,如何从 calendarView 中删除它?

没试过,但可能有用:

CalendarView cv = (CalendarView) this.findViewById(R.id.calendarView1);
ViewGroup vg = (ViewGroup) cv.getChildAt(0);

View subView = vg.getChildAt(0);

if(subView instanceof TextView) {
  ((TextView)subView).setVisibility(View.GONE);
}

好吧,试试这个 Calendar

它提供了很多自定义功能。