DISPLAY METHOD AND APPARATUS
20220391159 · 2022-12-08
Inventors
Cpc classification
G06F3/04842
PHYSICS
G09G5/397
PHYSICS
G06F3/1423
PHYSICS
G06F3/04886
PHYSICS
G06F1/1652
PHYSICS
G06F1/1677
PHYSICS
G06F2203/04803
PHYSICS
G06F1/1641
PHYSICS
G06F3/0481
PHYSICS
International classification
G06F3/14
PHYSICS
Abstract
At least two display areas are formed after an action such as folding a foldable screen of a device. The device displays a first display interface comprising a display interface of a first application. The device detects a first operation such as unfolding the screen and in response, displays a second display interface comprising a first display area and a second display area. The device displays the display interface of the first application in the first display area of the second display interface, and displays at least one application icon in the second display area of the second display interface. At least one application corresponding to the at least one application icon is associated with a first content in the display interface of the first application, and the at least one application comprises a first target application. The device detects a second operation acting on an application icon corresponding to the first target application and in response, displays a third display interface that comprises the first display area and the second display area. The device displays the display interface of the first application in the first display area of the third display interface, and displays, in the second display area of the third display interface, a first interface of the first target application, the first interface being associated with the first content.
Claims
1. A display method applied to an electronic device, comprising: displaying a first display interface comprising a display interface of a first application; detecting a first operation; in response to detecting the first operation, displaying a second display interface comprising a first display area and a second display area, including displaying the display interface of the first application in the first display area of the second display interface, and displaying at least one application icon in the second display area of the second display interface, wherein at least one application corresponding to the at least one application icon is associated with a first content in the display interface of the first application, and the at least one application comprises a first target application; detecting a second operation acting on an application icon corresponding to the first target application; and in response to detecting the second operation, displaying a third display interface that comprises the first display area and the second display area, including displaying the display interface of the first application in the first display area of the third display interface, and displaying, in the second display area of the third display interface, a first interface of the first target application, the first interface being associated with the first content.
2. The method of claim 1, wherein the electronic device has a foldable screen providing the first display area and the second display area, and the electronic device is in a folded state when the electronic device displays the first display interface.
3. The method of claim 1, wherein detecting the first operation comprises detecting an operation acting on the first display interface.
4. The method of claim 1, wherein detecting the first operation comprises detecting an operation acting on the first content of the first display interface.
5. The method of claim 2, wherein detecting the first operation comprises detecting unfolding of the electronic device.
6. The method of claim 5, wherein detecting the first operation further comprises detecting an operation acting on the first display interface.
7. The method of claim 1, further comprising: detecting a third operation acting on a second content in the display interface of the first application, and in response to detecting the third operation, displaying, in the second display area, a second interface of the first target application, wherein the second interface is associated with the second content, and the second content is different from the first content.
8. The method of claim 7, wherein the second interface displayed in the second display area comprises the first content and the second content.
9. The method of claim 7, wherein the first content and the second content are the same type of content.
10. The method of claim 1, further comprising: detecting a fourth operation on a second content in the display interface of the first application, and in response to detecting the fourth operation, displaying, in the second display area, an interface of a second target application, wherein the interface of the second target application is associated with the second content, the second content is different from the first content, the second target application is one application of the at least one application, and the second target application is different from the first target application.
11. The method of claim 10, further comprising, before the displaying the interface of the second target application: displaying, in the second display area, at least one application icon associated with the second content; detecting a fifth operation acting on one of the at least one application icon associated with the second content, wherein the one of the at least one application icon corresponds to the second target application; and displaying the interface of the second target application in response to detecting the fifth operation.
12. An electronic device, comprising: a memory configured to store a program; and a processor configured to execute the program to enable the electronic device to perform operations comprising: displaying a first display interface comprising a display interface of a first application; detecting a first operation; in response to detecting the first operation, displaying a second display interface comprising a first display area and a second display area, including displaying the display interface of the first application in the first display area of the second display interface, and displaying at least one application icon in the second display area of the second display interface, wherein at least one application corresponding to the at least one application icon is associated with a first content in the display interface of the first application, and the at least one application comprises a first target application; detecting a second operation acting on an application icon corresponding to the first target application; and in response to detecting the second operation, displaying a third display interface that comprises the first display area and the second display area, including displaying the display interface of the first application in the first display area of the third display interface, and displaying, in the second display area of the third display interface, a first interface of the first target application, the first interface being associated with the first content.
13. The electronic device of claim 12, wherein the electronic device further comprises: a foldable screen providing the first display area and the second display area, the electronic device being in a folded state when the electronic device displays the first display interface.
14. The electronic device of claim 12, wherein the first operation comprises an operation acting on the first display interface.
15. The electronic device of claim 12, wherein the first operation comprises an operation acting on the first content of the first display interface.
16. The electronic device of claim 13, wherein the first operation comprises unfolding the electronic device.
17. The electronic device of claim 16, wherein the first operation further comprises an operation acting on the first display interface.
18. The electronic device of claim 12, wherein the processor is further configured to perform operations comprising: detecting a third operation acting on a second content in the display interface of the first application, and displaying, in the second display area, a second interface of the first target application, wherein the second interface is associated with the second content, and the second content is different from the first content.
19. The electronic device of claim 18, wherein the second interface displayed in the second display area comprises the first content and the second content.
20. The electronic device of claim 18, wherein the first content and the second content are the same type of content.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
[0100]
DESCRIPTION OF EMBODIMENTS
[0101]
[0102] S101. Detect a folding angle between a first display area and a second display area.
[0103] S102. When the folding angle is greater than a preset threshold, determine a first target application based on content displayed in the first display area.
[0104] S103. Display the first target application in the second display area.
[0105] This embodiment is performed by an electronic device with a foldable screen. After the foldable screen is folded, at least two display areas can be formed, and each display area may be used to display different content. Alternatively, after the foldable screen is unfolded, the at least two display areas may be combined as a whole for display. Optionally, the foldable screen in this embodiment is a flexible organic light-emitting diode (Organic Light-Emitting Diode, OLED) screen. After the OLED screen is folded, a display area of the OLED screen can be divided into a first display area and a second display area on two sides of a folding line based on the folding line along which the OLED screen is folded. Similarly, after the folded flexible OLED screen is unfolded, the first display area and the second display area are combined into the original flexible OLED screen.
[0106] For example, an electronic device shown in
[0107] Specifically, the display method provided in this embodiment is used to determine and select, after the screen of the electronic device with the foldable screen is unfolded, an application to be displayed in the second display area. For example,
[0108] If detecting that the folding angle La is greater than the preset threshold in S101, the electronic device determines or selects, in S102, the first target application based on the content displayed in the first display area, and displays, in the second display area in S103, the first target application determined in S102. In addition, the content displayed in the first display area does not change, and the first display area and the second display area are independent of each other and do not interfere with each other. For example, in the embodiment shown in
[0109] It should be noted that in the accompanying drawings of the embodiments of this application, display of specific display interfaces of different applications such as the communications application and the map application is merely an example, and is not intended to limit actual content displayed by applying the display method in this application. For details that are of the applications and that are not shown in the accompanying drawings of the embodiments, refer to a display interface of an application in the prior art.
[0110] Optionally, in S103, in addition to simply displaying the first target application in the second display area, the electronic device may further process, in the first target application, the content displayed in the first display area. For example, in the embodiment shown in
[0111]
[0112] S201. Detect a folding angle between a first display area and a second display area.
[0113] S202. When the folding angle is greater than a preset threshold, determine a first target application based on content displayed in the first display area.
[0114] S203. Display the first target application in the second display area.
[0115] Steps S201 and S202 in the display method provided in this embodiment are the same as S101 and S102 in the display method shown in
[0116] Specifically,
[0117] Optionally, in the foregoing embodiments, when the first display area includes a plurality of controls that can determine content of the first target application, such as a location A and the location B that are included in
[0118] Optionally, in the foregoing embodiments, immediately after the folding angle in S101 is greater than the preset threshold, the first target application is determined by using S102. Therefore, when the first target application is displayed in the second display area or the third display area in S103 and S203, the folding angle between the first display area and the second display area does not fully reach e.g., 180 degrees obtained when the foldable screen is unfolded, that is, before the foldable screen of the electronic device is fully unfolded, the first target application is displayed in the unfolded second display area or third display area. Alternatively, after determining the first target application, the electronic device displays the first target application in the second display area or the third display area after the foldable screen of the electronic device is fully unfolded and the folding angle between the first display area and the second display area is e.g., 180 degrees.
[0119] Optionally, the display method shown in
[0120] Optionally, in the foregoing embodiments shown in
[0121] In conclusion, in the display methods provided in the foregoing embodiments of this application, when the screen of the electronic device with the foldable screen is unfolded, the first target application can be determined based on the content displayed in the first display area, and the first target application can be displayed in the unfolded second display area or third display area, so that after unfolding the foldable screen, the user does not need to manually select an application, but the electronic device directly displays, in the second display area or the third display area, an application that the user expects to open. This reduces complexity of a display method of the electronic device to which the foldable screen is applied, improves intelligence of the electronic device, and further improves user experience of unfolding the foldable screen and displaying an application by the user.
[0122] Optionally, in the foregoing embodiments shown in
[0123] Specifically,
[0124] Optionally, in the foregoing embodiments shown in
[0125] Specifically,
[0126] Optionally,
[0127] In conclusion, in the display method provided in this embodiment, the electronic device determines the location of the focus of the sight or gaze of the user in the first display area, to determine that an application corresponding to the content at the location of the focus is the first target program, and this method may be applied to the foregoing embodiments to display the determined first target program in the second display area or the third display area. This not only improves intelligence of the display method, but also improves accuracy of determining the first target program, and further improves user experience.
[0128] Optionally,
[0129] Specifically, as shown in
[0130] Optionally,
[0131] Optionally,
[0132] Further, optionally, in the foregoing embodiments shown in
[0133]
[0134] Optionally, in the foregoing embodiment, the display module or processor 1403 is configured to display the first target program in a third display area obtained by combining the first display area and the second display area.
[0135] The display apparatus provided in this embodiment may be configured to execute the display method shown in
[0136]
[0137] The display apparatus provided in this embodiment may be configured to execute the display method shown in the foregoing embodiments. A specific implementation and a principle thereof are the same as those of the display method, and details are not described again.
[0138] Optionally, in the foregoing embodiment, the processing module or processor 1402 is specifically configured to: determine semantic information of a text in the content displayed in the first display area, and determine that an application corresponding to the semantic information is the first target application.
[0139] Optionally, in the foregoing embodiment, the display module or processor 1403 is further configured to cause display, in the second display area, of representations such as thumbnails or icons of N optional applications related to the first target application, where N≥2. The processing module or processor 1402 is further configured to: obtain a tapping or touch action in the second display area, and determine that an optional application corresponding to a location of the tapping or touch action is the first target application.
[0140] Optionally, in the foregoing embodiment, the processing module or processor 1402 is further configured to: obtain a tapping or touch action in a display interface of the first display area, and determine a second target application based on content displayed at a location of the tapping or touch action. The display module or processor 1403 is further configured to display the second target application in the second display area.
[0141] Optionally, in the foregoing embodiment, the display module or processor 1403 is specifically configured to: display M optional applications or icons or thumbnails thereof in a specific area in the third display area, where M≥1, and the optional applications are related to the first target application, or the optional applications correspond to semantic information of a text in the content displayed in the first display area. The processing module or processor 1402 is specifically configured to: obtain a tapping or touch action in the third display area, and determine that an optional application corresponding to a location of the tapping or touch action is a third target application.
[0142] Optionally, in the foregoing embodiment, the processing module or processor 1402 is further configured to: obtain a message prompt that is of the first target application and that is displayed in the first display area, and determine the first target application based on the prompt message.
[0143] The display apparatus provided in this embodiment may be configured to execute the display method shown in the foregoing embodiments. A specific implementation and a principle thereof are the same as those of the display method, and details are not described again.
[0144] It should be noted that, in the embodiments of this application, module division is exemplary, and is merely a logical function division. In actual implementation, another division manner may be used. Functional modules in the embodiments of this application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application or all or some of the technical solutions may be implemented in the form of a software product. The software product is stored in a non-transitory storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disc.
[0145] All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, the embodiments may be implemented completely or partially in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the procedure or functions according to the embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable apparatuses. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid state drive (Solid State Disk, SSD)), or the like.
[0146]
[0147] Optionally, in the foregoing embodiment, the display 1603 is configured to display the first target program in a third display area obtained by combining the first display area and the second display area.
[0148] The electronic device provided in this embodiment may be configured to execute the display method shown in
[0149]
[0150] The electronic device provided in this embodiment may be configured to execute the display method shown in the foregoing embodiments. A specific implementation and a principle thereof are the same as those of the display method, and details are not described again.
[0151] Optionally, in the foregoing embodiment, the processor 1602 is specifically configured to: determine semantic information of a text in the content displayed in the first display area, and determine that an application corresponding to the semantic information is the first target application.
[0152] Optionally, in the foregoing embodiment, the display 1603 is further configured to display, in the second display area, N optional applications related to the first target application, where N≥2. The processor 1602 is further configured to: obtain a tapping action in the second display area, and determine that an optional application corresponding to a location of the tapping action is the first target application.
[0153] Optionally, in the foregoing embodiment, the processor 1602 is further configured to: obtain a tapping action in a display interface of the first display area, and determine a second target application based on content displayed at a location of the tapping action. The display 1603 is further configured to display the second target application in the second display area.
[0154] Optionally, in the foregoing embodiment, the display 1603 is specifically configured to: display M optional applications in a specific area in the third display area, where M≥1, and the optional applications are related to the first target application, or the optional applications correspond to semantic information of a text in the content displayed in the first display area. The processor 1602 is specifically configured to: obtain a tapping action in the third display area, and determine that an optional application corresponding to a location of the tapping action is a third target application.
[0155] Optionally, in the foregoing embodiment, the processor 1602 is further configured to: obtain a message prompt that is of the first target application and that is displayed in the first display area, and determine the first target application based on the prompt message.
[0156] The electronic device provided in this embodiment may be configured to execute the display method shown in the foregoing embodiments. A specific implementation and a principle thereof are the same as those of the display method, and details are not described again.
[0157] This application further provides an electronic device, including a processor and a memory, where the memory is configured to store a program, and the processor is configured to invoke the program stored in the memory to execute the display method in any one of the foregoing embodiments.
[0158] This application further provides a computer-readable storage medium, where the computer-readable storage medium stores program code, and when the program code is executed, the display method in any one of the foregoing embodiments is performed.
[0159] This application further provides a computer program product, and when program code included in the computer program product is executed by a processor, the display method in any one of the foregoing embodiments is implemented.
[0160] Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of this application other than limiting this application. Although this application is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof. These modifications and replacements shall not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of this application.