AgendaCalendarView icon indicating copy to clipboard operation
AgendaCalendarView copied to clipboard

How to change the row size of default calendar view in tab before expanding?

Open AnithJo opened this issue 7 years ago • 1 comments

It shows two rows on the top. I'd like to change it into single row

AnithJo avatar Aug 17 '17 07:08 AnithJo

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); }

AmruthaSaju avatar Aug 28 '17 06:08 AmruthaSaju