android – Multiple views with different heights in ViewFlipper-ThrowExceptions

Exception or error:

I have a ViewFlipper which has some 10 views in it and each view is of different size (height wise). Everything is working fine. The problem is, the smaller views are getting padded(height) to make their height equal to the largest view.
Is there a way to avoid this problem?

Thx!
Rahul.

How to solve:

Ok. I searched a bit more and found the following solution. Need to set the android:measureAllChildren to false in the ViewFlipper.

Leave a Reply

Your email address will not be published. Required fields are marked *