Electronic device for adaptively changing representation of image according to change in display area of rollable display
An electronic device according to an embodiment may comprise: a housing; a memory configured to store instructions; a display slidable into the housing or slidable out of the housing; and at least one processor, when the instructions are executed, configured to: identify, while an image is displayed in a display area of the display exposed outside the housing, an event in which the display area exposed outside the housing is extended; and change, in response to the identification, a representation of the image based on at least one of a direction in which the display area is extended or a speed at which the display area is extended, while the display area is extended.
1 . An electronic device comprising:
a housing including a first housing part and a second housing part movably coupled to the first housing part, wherein the housing is changed between a retracted state and an extended state based on a movement of the second housing part;
memory comprising one or more storage media and storing instructions;
an actuator configured to provide driving force to move the second housing part with respect to the first housing part;
a flexible display supported by the first housing part and the second housing part, wherein a size of a display area of the flexible display exposed to an outside of the housing is changed based on the movement of the second housing part; and
at least one processor comprising processing circuitry,
wherein the instructions, when executed by the at least one processor, cause the electronic device to:
while an image is displayed in the display area of the flexible display, identify an event that changes the state of the housing;
in response to the event, control the actuator to move the second housing part with respect to the first housing part to extend the display area of the flexible display;
while the display area of the flexible display is extended,
move the image in a first direction in which the display area is extended; and
based on identifying that a distance in which the image is moved in the first direction reaches a distance threshold, extend the image in a second direction opposite to the first direction.
2 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
based on identifying completion of the extension of the display area, provide a bounce back effect that moves the image that is moved in the second direction via the flexible display.
3 . The electronic device of claim 2 ,
wherein the image is a user interface (UI) of a first software application being executed in a foreground state,
wherein the instructions, when executed by the at least one processor, cause the electronic device to:
while the display area is extended, display a portion of a UI of a second software application being executed in a background state within a portion of the display area including a first space formed as a result of the movement of the image and a second space newly exposed as a result of the extension of the display area; and
wherein the portion of the UI of the first software application is superimposed on another portion of the UI of the second software application while the display area is extended.
4 . The electronic device of claim 3 , wherein the portion of the UI of the second software application is displayed with a blur effect via the flexible display.
5 . The electronic device of claim 3 , wherein the instructions, when executed by the at least one processor cause the electronic device to:
while the display area is extended, further display a portion of a UI of a third software application being executed in the background state within the portion of the display area;
wherein the portion of the UI of the second software application is superimposed on another portion of the UI of the third software application while the display area is extended; and
wherein the second software application is a software application executed in the foreground state after an execution state of the third software application was changed from the foreground state to the background state.
6 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor cause the electronic device to:
while the display area is extended, move the image in the first direction such that a portion of the image is displayed and a remaining portion of the image is ceased being displayed.
7 . The electronic device of claim 6 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
based on identifying that the distance reaches the distance threshold, cease to move the image in the first direction; and
further display a remaining portion of the image by extending viewable portions of the image in the second direction.
8 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
while the display area is extended, display additional information, within the portion of the display area including a first space formed as a result of a movement of the image and a second space newly exposed as a result of an extension of the display area.
9 . The electronic device of claim 8 , wherein the additional information includes at least one of information regarding notifications caused in the electronic device, update information of an operating system (OS) of the electronic device, local time information, weather information, or usage history information of the electronic device.
10 . The electronic device of claim 8 , wherein the image is a UI of a software application being executed in a foreground state, and wherein the additional information includes information regarding a running time the software application has been executed in the foreground state.
11 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
change a movement speed of the image based on a rate at which the display area is extended, and
wherein, when an extension speed of the display area increases, the movement speed of the image increases.
12 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
display, within the image, a visual object, having a three-dimensional (3D) shape, being rotated while the display area is extended, and
wherein a rotation speed of the visual object is changed based on the change of an extension speed of the display area.
13 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
display, within the image, a visual object having a shape being changed from a two-dimensional (2D) shape to a three-dimensional (3D) shape, wherein the visual object having the 3D shape is rotated while the display area is extended, and
wherein a rotation speed of the visual object is changed based on the change of an extension speed of the display area.
14 . The electronic device of claim 1 , wherein a movement speed of the image in the first direction increases in accordance with an extension speed of the display area.
15 . The electronic device of claim 1 ,
wherein the actuator includes a rack gear coupled with the display or a support member supporting the display, a pinion gear, and a motor coupled with the pinion gear via a shaft,
wherein the instructions, when executed by the at least one processor, cause the electronic device to:
in response to receiving a user input, extend the display area by moving the rack gear in the first direction based on rotating the pinion gear using the motor.
16 . The electronic device of claim 1 ,
wherein the first direction is opposite to a direction in which the display area is extended.
17 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
based on the distance in which the image is moved in the first direction being identified as reaching the distance threshold, and information to be displayed while the second housing part is moved with respect to the first housing part being identified, forgo extending the image in the second direction, and display the information within a portion of the display area including a first space formed as a result of the movement of the image and a second space newly exposed as a result of the extension of the display area.
18 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
based on the distance in which the image is moved in the first direction being identified as reaching the distance threshold, and information to be displayed while the second housing part is moved with respect to the first housing part being not identified, extend the image in the second direction.
19 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor, cause the electronic device to:
change a movement speed of the image based on a rate at which the display area is extended, and
wherein an extension speed of the display area is gradually increased until the distance reaches the distance threshold.
20 . A method executed in an electronic device comprising a housing including a first housing part and a second housing part movably coupled to the first housing part, wherein the housing is changed between a retracted state and an extended state based on a movement of the second housing part, an actuator configured to provide driving force to move the second housing part with respect to the first housing part, and a flexible display supported by the first housing part and the second housing part, wherein a size of a display area of the flexible display exposed to an outside of the housing is changed based on the movement of the second housing part, the method comprising:
while an image is displayed in the display area of the flexible display, identifying an event that changes the state of the housing;
in response to the event, controlling the actuator to move the second housing part with respect to the first housing part to extend the display area of the flexible display;
while the display area of the flexible display is extended,
moving the image in a first direction in which the display area is extended; and
based on identifying that a distance in which the image is moved in the first direction reaches a distance threshold, extending the image in a second direction opposite to the first direction.
21 . The method of claim 20 , wherein a movement speed of the image in the first direction increases in accordance with an extension speed of the display area.