Multiple views with different heights in ViewFlipper
Asked Answered
A

1

25

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.

Apivorous answered 17/10, 2012 at 15:15 Comment(0)
A
85

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

Apivorous answered 17/10, 2012 at 20:30 Comment(2)
Superb! Nailed it! I always thought this can't be fixed but today I was so stuck that I had to find a solution for ViewFlipper once and for all and found this, Cool!Prolate
Great one! Helped me save a lot of time.Eisenhart

© 2022 - 2024 — McMap. All rights reserved.