Friday, 23 August 2013

Stretch a ViewGroup to its contents in Android

Stretch a ViewGroup to its contents in Android

I have a customized ViewGroup with some items inside. I would like to
height of the ViewGroup to be stretched as long as possible to fit the
contents. How can I achieve this?
NOTE: I have already tried with android:layout_height="wrap_content"
without success.

No comments:

Post a Comment