umano AndroidSlidingUpPanel Resize Main Content-open source projects umano/AndroidSlidingUpPanel

SOLVED:

Apparently the source has been updated to add this functionality. Before that happened I forked the source to do this and to have a flag to close on orientation change. My fork is at github.com/Style87/AndroidSlidingUpPanel. I don’t think my changes were pulled into the main branch and I’m not going to keep it up to date.

Original problem: I am using the umano AndroidSlidingUpPanel library. My main content view is a Google Map fragment and the sliding panel is a LinearLayout with dynamic content from Marker clicks. When a Marker is clicked the sliding panel opens to the anchor point. When the sliding panel has stopped I would like to re-size the main content to fill in the remaining space such that the bottom of the map is aligned with the top of the sliding panel. How can I re-size the main content to the remaining space once the slide has stopped?

Feel free to use modify the demo to explain.