Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update Height with ViewFlipper

I want to be able to update height on every child of the ViewFlipper. Is this possible as I could never find any API documentation for ViewFlipper and updating the height or width.

like image 547
JamesD31 Avatar asked Aug 06 '11 06:08

JamesD31


1 Answers

just use

ViewFlipper myflipper = (ViewFlipper)findViewById(R.id.myflipper);
myflipper .setMeasureAllChildren(false);

It will take height, and width of visible child only

like image 122
Jomia Avatar answered Nov 19 '22 17:11

Jomia