Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple views with different heights in ViewFlipper

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.

like image 608
rahul Avatar asked Oct 17 '12 15:10

rahul


1 Answers

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

like image 130
rahul Avatar answered Nov 13 '22 05:11

rahul