Show / hide UI components
UI components can be shown and hidden as required. If the UI component is in a layout, the UI components are automatically arranged differently, if necessary.
Example:
-
Hide UI component dynamically - If the UI component is in a layout, the UI components in the layout will be rearranged if necessary.
button.setVisible(false);
-
Dynamically show UI component - If the UI component is in a layout, the UI components in the layout will be rearranged if necessary.
button.setVisible(true);