ViewPager with expandable child
I'm trying to create collapsable calendar. I'm using custom calendarView in ViewPager, so when expand/collapse button pressed my calendarView animate collapsing all calendar weeks except only one. Goal is to swipe month when expanded (which works as i want) and swipe weeks when collapsed. Below calendarView is ListView with some events, when user collapse calendar - listView height must change. Problem is when i trying to collapse calendarView in ViewPager, he doesn't change height. calendarView is a LinearLayout with child views, when it is not in ViewPager, it animating and changing size. I