roomorama / Caldroid

A better calendar for Android
Other
1.42k stars 531 forks source link

NestedScrollView and layout_gravity="fill_vertical" content cut #353

Open AdelineJolie opened 8 years ago

AdelineJolie commented 8 years ago

Hello,

I'm using a NestedScrollView to display a bunch of information coming from a rest request. One of the view is the calendar fragment.

When the view finished loading, part of the view is pushed BEHIND the toolbar (because of the calendar.. if I remove the calendar this doesn't happen)

There is an option with NestScrollView layout_gravity="fill_vertical" this fixed that problem where the content gets pushed, but now (again because of the calendar) the bottom of the nestScrollView is CUT (like the view is missing half on the calendar)

It looks like because of the calendar the NestedScrollView in some way dosn't know exactly hoe tall the calendar will be

Note that if instead of wrap_content for the height of the calendar I set a size like 400dp, the problem doesn't appear and the NestedScrollView displays everything)