AgendaCalendarView
AgendaCalendarView copied to clipboard
How to change the row size of default calendar view in tab before expanding?
It shows two rows on the top. I'd like to change it into single row
Try this:
- In CalendarView class inside collapseCalendarView method, you can set the height of the layout.
change it to-
private void collapseCalendarView() { ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams) getLayoutParams(); layoutParams.height = (int) (getResources().getDimension(R.dimen.calendar_header_height) + 1 * getResources().getDimension(R.dimen.day_cell_height)); setLayoutParams(layoutParams); }