2025-06-29 6:41 PM
I made some containers in 1 screen. (please refer to attached image)
I wanted to handle these containers depends on h/w key.
e.g. temp key is pressed, all of the containers in HDT_POPUP_GRAPHIC_SCREEN must be disabled. only
main_graphic_temp_container will be showed up.
However,
main_graphic_temp_container.setVisible(true);
main_graphic_temp_container.invalidate();
doesn't work normally, when these codes are in the switch~case statement.
I tried to move these codes to the end of the setupScreen(), not in the switch~case statement.
In that case,
main_graphic_temp_container.setVisible(true);
main_graphic_temp_container.invalidate();
works normally.
Am I wrong to use these two (setVisible, invalidate) methods?