android-layout-wrap-content-updater

Update dynamically View sizes when layout_width or layout_height="wrap_content"

One of the annoying flaws of Android UI is its inability to update the size of Views defined with "wrap_content", when we insert dynamically children views or when we modify their content.

This class is a workaround that recomputes sizes and forces a new layout for those views.

When invalidate(), requestLayout() or recomputeViewAttributes() don't work for you, simply call wrapContentAgain() on the view you want and it will reprocess all the subtree.

NOTES:

End of nightmare, enjoy!

--Eric