I want to be able to update the height for each child of the ViewFlipper. Is this possible, since I could never find the API documentation for ViewFlipper and update the height or width.
just use
ViewFlipper myflipper = (ViewFlipper)findViewById(R.id.myflipper); myflipper .setMeasureAllChildren(false);
It will occupy the height and width of only the visible child
You just need to go through:
LayoutParams myLP = new LayoutParams(myHeight, myWidth); for (int i = 0; i < myViewFlipper.getChildCount(); i++) { myViewFlipper.getViewAt(i).setLayoutParams(myLP); }
Source: https://habr.com/ru/post/894431/More articles:jmeter testcases that captcha can handle? - captchaSharding vs DFS - nosqlBinding log4j.properties in a library - bad style or what? - javaHow can I return the Islamic calendar using java.util.Calendar? - javaSubclasses of java.util.Calendar are available for commercial use - i.e. IslamicCalendar - javaThousands of read / write devices in one process - c ++How do I tell the user that a specific tab in JTabbedPane needs attention? - javaSelect Linq nodes in Xml C # - c #Error reading Ruby string if process started with arguments - ruby | fooobar.comPaint Mirroring in C # using System.Drawing.Graphics - c #All Articles