Patent attributes
An electronic device and method are disclosed. The electronic device includes a first sub-housing, and a second sub-housing, a flexible, a sensor, and a processor. The processor implements the method, including detecting a first input, obtaining a first value from the first input, when the first value is equal to or greater than a first reference value, detecting a second input following the first input, displaying a first graphical user interface element in response to the second input, obtaining a second value from the second input, when the second value is less than a second reference value, displaying the first GUI element on the display based on the second value, and when the second value is equal to or greater than the second reference value, displaying a second GUI element on the flexible display, wherein the second housing is moved to extend a display area.