DISPLAY METHOD AND APPARATUS
20210311683 · 2021-10-07
Inventors
Cpc classification
G06F3/04842
PHYSICS
G09G5/397
PHYSICS
G06F3/1423
PHYSICS
G06F3/04886
PHYSICS
G06F1/1652
PHYSICS
G06F2203/04803
PHYSICS
G06F1/1677
PHYSICS
G06F1/1641
PHYSICS
G06F3/0481
PHYSICS
International classification
G06F3/14
PHYSICS
Abstract
An electronic device with a foldable screen. At least two display areas are formed after the foldable screen is folded. The method includes: detecting a folding angle between a first display area and a second display area; when the folding angle is greater than a preset threshold, determining a first target application based on content displayed in the first display area; and displaying the first target application in the second display area. According to the display method and the apparatus provided in this application, the first target application can be determined based on the content displayed in the first display area, when the screen of the electronic device with the foldable screen is unfolded; and the first target application is displayed in the second display area or a third display area obtained after unfolding.
Claims
1. A display method for use with an electronic device with a foldable screen providing at least two display areas after the foldable screen is folded, the method comprising: detecting a folding angle between a first display area and a second display area; in response to the detected folding angle being compared with a preset threshold, selecting a first target application based on content displayed in the first display area; and displaying the selected first target application in the second display area.
2. The method according to claim 1, further comprising subsequently displaying the first target program in a third display area obtained by combining the first display area and the second display area.
3. The method according to claim 1, wherein selecting a first target application based on content displayed in the first display area comprises: detecting a location of a gaze of a user of the electronic device in the first display area; and determining the first target application based on content displayed at the location of the gaze.
4. The method according to claim 1, wherein selecting a first target application based on content displayed in the first display area comprises: determining semantic information of a text in the content displayed in the first display area; and determining that an application corresponding to the semantic information is the first target application.
5. The method according to claim 1, wherein the displaying the first target application in the second display area comprises: displaying, in the second display area, thumbnails or icons of N optional applications related to the first target application, wherein N≥2; obtaining a tapping or touch action in the second display area, and determining that an optional application corresponding to a location of the tapping or touch action is the first target application; and displaying the first target application in the second display area.
6. The method according to claim 1, further comprising: obtaining a tapping or touch action in a display interface of the first display area; and determining a second target application based on content displayed at a location of the tapping or touch action; and displaying the second target application in the second display area.
7. The method according to claim 2, further comprising: displaying thumbnails or icons of M optional applications in a specific area in the third display area, wherein 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; obtaining a tapping or touch action in the third display area, and determining that an optional application corresponding to a location of the tapping action is a third target application; and displaying the third target application in the third display area.
8. The method according to claim 1, comprising: obtaining a message prompt that is of the first target application and that is displayed in the first display area; and selecting a first target application based on content displayed in the first display area comprises: selecting the first target application based on the prompt message.
9. A display apparatus comprising: a foldable screen forming at least first and second display areas after the foldable screen is folded; a detector configured to detect a folding angle between a first display area and a second display area; a processor, configured to select a first target application based on content displayed in the first display area in response to a comparison between the detected folding angle and a preset threshold; and a display processor, operatively coupled to the processor and to the foldable screen and configured to cause the first target application to be displayed in the second display area.
10. The display apparatus according to claim 9, wherein the display processor is configured to: cause display of the first target program in a third display area obtained by combining the first display area and the second display area.
11. The display apparatus according to claim 9, further comprising: a recognition sensor, configured to determine a location of a gaze of a user of the display apparatus in the first display area, wherein the processor is configured to determine the first target application based on content displayed at the location of the gaze.
12. The display apparatus according to claim 9, wherein the processor 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.
13. The display apparatus according to claim 9, wherein the display processor is further configured to cause display, in the second display area, of representations of N optional applications related to the first target application, wherein N≥2; and the processor 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.
14. The display apparatus according to claim 9, wherein the processor 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; and the display processor is further configured to cause display of the second target application in the second display area.
15. The display apparatus according to claim 10, wherein the display processor is further configured to: display representations of M optional applications in a specific area in the third display area, wherein 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; and the processor is further 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.
16. The display apparatus according to claim 9, wherein the processor 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.
17. An electronic device, comprising: a processor and a memory, wherein the memory is configured to store a program; and the processor is configured to invoke the program stored in the memory to perform the method according to claim 1.
18. (canceled)
Description
BRIEF DESCRIPTION OF DRAWINGS
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
DESCRIPTION OF EMBODIMENTS
[0100]
[0101] S101. Detect a folding angle between a first display area and a second display area.
[0102] 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.
[0103] S103. Display the first target application in the second display area.
[0104] 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.
[0105] For example, an electronic device shown in
[0106] 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,
[0107] If detecting that the folding angle ∠α 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
[0108] 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.
[0109] 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
[0110]
[0111] S201. Detect a folding angle between a first display area and a second display area.
[0112] 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.
[0113] S203. Display the first target application in the second display area.
[0114] 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
[0115] Specifically,
[0116] 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
[0117] 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.
[0118] Optionally, the display method shown in
[0119] Optionally, in the foregoing embodiments shown in
[0120] 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.
[0121] Optionally, in the foregoing embodiments shown in
[0122] Specifically,
[0123] Optionally, in the foregoing embodiments shown in
[0124] Specifically,
[0125] Optionally, =P−C, and points obtained when the pupil center-corneal reflection vector varies with a direction of a point of gaze of a human eye are determined by using a spatial three-dimensional eyeball model for one-to-one matching and calibration, to obtain a calibration coefficient matrix M. Finally, the point of gaze of an eyeball is determined through the following function mapping: f(PC.sub.i)=G.sub.i, where f(x.sub.i,y.sub.i,t.sub.i)=(x.sub.i,y.sub.i,t.sub.i).sup.T.Math.M.Math.(x.sub.i,y.sub.i,t.sub.i)=(x′.sub.i,y′.sub.i,t.sub.i). The manner that is of determining the sight or gaze of the user and that is provided in this embodiment is only an example. For details that are not listed, refer to a well-known method in the art. It should be noted that the example sets no specific limitation on the foregoing embodiment, and the sight or gaze of the user may be further recognized in another manner.
[0126] 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.
[0127] Optionally,
[0128] Specifically, as shown in
[0129] Optionally,
[0130] Optionally,
[0131] Further, optionally, in the foregoing embodiments shown in
[0132]
[0133] 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.
[0134] The display apparatus provided in this embodiment may be configured to execute the display method shown in
[0135]
[0136] 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.
[0137] 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.
[0138] 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.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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.
[0143] 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.
[0144] 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.
[0145]
[0146] 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.
[0147] The electronic device provided in this embodiment may be configured to execute the display method shown in
[0148]
[0149] 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.
[0150] 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.
[0151] 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.
[0152] 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.
[0153] 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.
[0154] 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.
[0155] 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.
[0156] 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.
[0157] 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.
[0158] 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.
[0159] 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.