Display method of foldable electronic equipment, electronic equipment and storage medium

By setting a foldable second display screen on the back of the first display screen of the electronic device and using virtual layer technology, the problem of the external display screen being vacant due to avoiding the deco area is solved, which improves the display effect and user experience.

CN119254868APending Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410208484.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In electronic devices, in order to avoid the deco area, the external display screen will be divided into two display areas, resulting in some display areas being vacant, affecting the display effect and user experience.

Method used

By adopting a foldable electronic device display method, a second display screen is provided on the back of the first display screen, and upon receiving a corresponding operation, a first interface is displayed in the first display area of ​​the first display screen, while at the same time, The second display area displays the second interface, using the creation, mapping, cropping and blur processing technology of the virtual layer to ensure that the first display area is not empty, and improves display uniformity and user experience.

Benefits of technology

It effectively avoids the problem of the first display screen empty due to avoiding the deco area, improves the display effect and user experience, reduces the power consumption of operation resources, and improves the interface immersion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254868A_ABST
    Figure CN119254868A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of display, and provides a display method of foldable electronic equipment, the electronic equipment and a storage medium, and the electronic equipment comprises a first display screen which cannot be folded and a second display screen which can be folded to form two screens. The first display screen is provided with an assembly deco area which is arranged on the back face of one screen of the second display screen. After the electronic equipment receives a first operation used for triggering the display of the first application on the first display screen, the first interface is displayed in the first display area of the first display screen while the second interface is displayed in the second display area of the first display screen in response to the first operation. Wherein the first interface is obtained based on the second interface, and the first display area is the remaining display area of the first display screen after the electronic equipment avoids the deco area to display the interface in the second display area. Therefore, according to the method, the situation that the first display area in the first display screen is vacated in order to avoid the deco area can be avoided, and therefore the display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of electronic device display technology, and more particularly to a display method for a foldable electronic device, an electronic device, and a storage medium. Background Art

[0002] With the development of electronic device technology, foldable electronic devices have emerged. For electronic devices that include both a foldable inner display screen and a non-foldable outer display screen, the deco area used to equip devices such as a camera may be arranged in the same housing area as the outer display screen. Therefore, in order to prevent the deco area from blocking the display content on the outer display screen, the outer display screen of the electronic device may be configured with a display mode that avoids the deco area.

[0003] However, the display mode avoiding the deco area may easily leave a portion of the display area on the outer display screen empty due to avoidance reasons, resulting in a blank display area on the outer display screen, thereby affecting the display effect and reducing the user experience. Summary of the invention

[0004] The embodiments of the present application provide a display method of a foldable electronic device, an electronic device and a storage medium, which are used to solve the problem that a non-foldable external display screen in an electronic device leaves a display area empty to avoid a deco area, and the existence of a blank display area affects the display effect and reduces the user experience.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In the first aspect, a display method of a foldable electronic device is provided, and the method is applied to a foldable electronic device. The electronic device includes a first display screen and a second display screen. The first display screen is not foldable, and the second display screen is foldable to form two screens. At the same time, the first display screen is arranged on the back of one screen of the second display screen, and a deco assembly area is also arranged on the first display screen. The method includes: after the electronic device receives a first operation for triggering the electronic device to display a first application interface of a first application on the first display screen, the electronic device responds to the first operation, and displays the first interface in the first display area of ​​the first display screen while displaying the second interface in the second display area of ​​the first display screen. The first interface is obtained based on the second interface, the second interface includes the second application interface, and the second application interface and the first application interface are the same application interface. At the same time, the first display area corresponds to the deco area, which is the remaining display area of ​​the first display screen after the second interface is displayed in the second display area in order to avoid the deco area.

[0007] Therefore, even if the electronic device divides the first display screen into two display areas in order to avoid the deco area, and only displays the application interface of the first application in the second display area, it can also avoid the first display area in the first display screen being vacated in order to avoid the deco area, thereby improving the display effect and enhancing the user experience.

[0008] In a possible implementation of the first aspect, the first interface displayed in the first display area can be obtained by blurring the second application interface in the second interface. Thus, while ensuring that the application interface of the first application is displayed prominently, the display uniformity of the first display area and the second display area is improved. Even if the first display screen is divided into two display areas, the user's interface immersion is enhanced as much as possible to improve the display effect and user experience.

[0009] In another possible implementation of the first aspect, the first display area may be smaller than the second display area. Therefore, the first interface displayed in the first display area may be obtained by cropping and blurring the second application interface in the second interface to obtain a first interface that is adapted to the display size of the first display area.

[0010] In a possible implementation of the first aspect, in view of the characteristic of the foldable electronic device that can fold and switch the display screen, the first operation includes the user's opening operation of the first application on the first display screen and / or the user's screen switching operation of switching from the second display screen to the first display screen.

[0011] In a possible implementation of the first aspect, displaying a first interface in a first display area of ​​a first display screen may include: creating a new virtual layer, mapping a window layer of a first application to the virtual layer, so that the mapped virtual layer includes a second application interface; wherein the window layer includes the second application interface; cropping and blurring the mapped virtual layer according to the size of the first display area to obtain a third application interface and displaying it in the first display area; wherein the first interface includes the third application interface.

[0012] In this implementation method, since the first application usually includes multiple switchable second application interfaces, compared to directly cropping and blurring each second application interface to obtain the first interface displayed in the first display area, this implementation method, at the layer level, through the creation, mapping, cropping and blurring of virtual layers, only requires one operation to enable the first display area to dynamically follow the interface switching of the second display area, thereby improving the display efficiency of the first display area, reducing operations and saving resources and power consumption.

[0013] In a possible implementation of the first aspect, the electronic device may start to create a new virtual layer after the first second application interface in the application window of the first application is drawn. Then, the virtual layer is mapped, cropped, and blurred. Thus, in this implementation, the creation and mapping are started after the layer content is included in the window layer of the first application. Compared with creating and mapping the virtual layer before the second application interface is drawn, it is possible to check more promptly whether the virtual layer is successfully mapped and includes the corresponding mapping data to ensure successful mapping.

[0014] In a possible implementation of the first aspect, since the size of the first display screen is usually smaller than the second display screen, and the second display area is only a partial display area in the first display screen, the second application interface of the first application displayed in the first display screen can be a reduced first application interface of the first application.

[0015] In a possible implementation of the first aspect, after the first display screen is divided into two display areas, most of the displayed content is mainly displayed in the second display area, which makes the second display area very crowded. Therefore, in this implementation, in order to solve the problem of crowded display in the second display area, the status elements originally displayed in the second display area can be displayed in the first display area. Based on this, the first interface in the method may include status elements, and the second interface does not include status elements. Among them, the status element can be any one or more of time, notification capsule, signal grid, network icon, and volume icon.

[0016] In a possible implementation manner of the first aspect, the first interface includes a time and a notification capsule, and the second interface does not include a time and a notification capsule.

[0017] In a possible implementation of the first aspect, in response to the first operation, displaying the first interface in the first display area of ​​the first display screen and displaying the second interface in the second display area of ​​the first display screen may include: in response to the first operation, if the first application is a target application, displaying the first interface in the first display area of ​​the first display screen and displaying the second interface in the second display area of ​​the first display screen. Thus, when the first application is a target application that is pre-configured to display the first interface in the first display area, the electronic device can display the first interface in the first display area while displaying the second interface in the second display area.

[0018] In a possible implementation manner of the first aspect, the first interface may also be a solid color interface having the same background color as the second application interface in the second interface.

[0019] In a possible implementation manner of the first aspect, the first interface may also be an interface with a gradient interface color, and the interface color may be the same as the background color of the second application interface in the second interface.

[0020] In a second aspect, the present application provides an electronic device, comprising: a first display screen, a second display screen, one or more processors and a memory, wherein the memory is coupled to the processor; the second display screen is foldable to form two screens, the first display screen is arranged on the back of one screen of the second display screen, and the first display screen is not foldable, and one or more computer program codes are stored in the memory, wherein the computer program code comprises computer instructions; when the processor executes the computer instructions, the electronic device performs the following steps:

[0021] Receiving a first operation, where the first operation triggers the electronic device to display a first application interface of a first application on a first display screen;

[0022] In response to the first operation, a first interface is displayed in a first display area of ​​a first display screen, and a second interface is displayed in a second display area of ​​the first display screen; wherein the first interface is obtained based on the second interface; the second interface includes a second application interface of the first application, and the second application interface and the first application interface are the same application interface; the first display area corresponds to a deco area, which is a display area of ​​the first display screen remaining after the second interface is displayed in the second display area in order to avoid the deco area.

[0023] In a possible implementation manner of the second aspect, when the above-mentioned computer instructions are executed by the processor, the electronic device further performs the following steps: blurring the second application interface in the second interface to obtain the first interface.

[0024] In a possible implementation of the second aspect, the first display area is smaller than the second display area. When the above-mentioned computer instructions are executed by the processor, the electronic device further performs the following steps: cropping and blurring the second application interface in the second interface to obtain the first interface.

[0025] In a possible implementation of the second aspect, when the above-mentioned computer instructions are executed by the processor, the electronic device further performs the following steps: creating a new virtual layer, mapping the window layer of the first application to the virtual layer, so that the mapped virtual layer includes the second application interface; wherein the window layer includes the second application interface; cropping and blurring the mapped virtual layer according to the size of the first display area to obtain a third application interface and displaying it in the first display area; wherein the first interface includes the third application interface.

[0026] In a possible implementation of the second aspect, when the above-mentioned computer instructions are executed by the processor, the electronic device further performs the following steps: after the first second application interface of the window layer of the first application is drawn, a new virtual layer is created.

[0027] In a possible implementation manner of the second aspect, when the above-mentioned computer instructions are executed by the processor, the electronic device further performs the following steps: shrinking the first application interface to obtain a second application interface.

[0028] In a possible implementation of the second aspect, when the above-mentioned computer instructions are executed by the processor, the electronic device also performs the following steps: displaying the status elements in the second interface on the first interface, the first interface includes the status elements, and the second interface does not include the status elements; wherein the status elements include any one or more of time, notification capsules, signal bars, network icons, and volume icons.

[0029] In a possible implementation of the second aspect, when the above-mentioned computer instructions are executed by the processor, the electronic device further performs the following steps: in response to the first operation, if the first application is the target application, the first interface is displayed in the first display area of ​​the first display screen, and the second interface is displayed in the second display area of ​​the first display screen.

[0030] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor in an electronic device, the electronic device executes a display method for a foldable electronic device such as the first aspect and any possible implementation thereof.

[0031] In a fourth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method of the first aspect and any possible implementation thereof. The computer may be the electronic device described above.

[0032] It can be understood that the beneficial effects that can be achieved by the electronic device of any possible implementation of the second aspect, the computer-readable storage medium of the third aspect, and the computer program product of the fourth aspect can be referred to as the beneficial effects in the first aspect and any possible implementation thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of a foldable electronic device provided in an embodiment of the present application;

[0034] Figure 2 A schematic diagram of a deco area of ​​a foldable electronic device provided in an embodiment of the present application;

[0035] Figure 3A schematic diagram of a deco area of ​​another foldable electronic device provided in an embodiment of the present application;

[0036] Figure 4 A display diagram of an outer display screen of a foldable electronic device provided in an embodiment of the present application Figure 1 ;

[0037] Figure 5 A display diagram of an outer display screen of a foldable electronic device provided in an embodiment of the present application Figure 2 ;

[0038] Figure 6 A display diagram of an outer display screen of a foldable electronic device provided in an embodiment of the present application Figure 3 ;

[0039] Figure 7 A schematic structural diagram of a window layer of an outer display screen of a foldable electronic device provided in an embodiment of the present application;

[0040] Figure 8 A display interface diagram of a first display area provided in an embodiment of the present application Figure 1 ;

[0041] Fig. 9 A display interface diagram of a first display area provided in an embodiment of the present application Figure 2 ;

[0042] Fig.10 A display interface diagram of a first display area provided in an embodiment of the present application Figure 3 ;

[0043] Fig.11 A schematic diagram of a display interface for displaying state elements in a first display area provided in an embodiment of the present application;

[0044] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0045] Fig.13 A schematic diagram of a coordinate system of a gyroscope provided in an embodiment of the present application;

[0046] Fig.14 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0047] Fig.15 A module framework diagram of a display device of a foldable electronic device provided in an embodiment of the present application;

[0048] Fig.16 A schematic diagram of an interactive process of a display method for a foldable electronic device provided in an embodiment of the present application;

[0049] Fig.17 A processing flow chart of an application interface provided in an embodiment of the present application;

[0050] Fig.18 A schematic diagram of an interactive process of a display method for a foldable electronic device provided in an embodiment of the present application;

[0051] Fig.19 A structural block diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The technical scheme of the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Among them, in the description of the embodiment of the present application, the terms used in the following embodiments are only for the purpose of describing a specific embodiment, and are not intended to limit the present application. In addition, in order to facilitate the clear description of the technical scheme of the embodiment of the present application, in the embodiment of the present application, if the words "first", "second" and the like are used to distinguish the same items or similar items with basically the same functions and effects. It can be understood by those skilled in the art that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit necessarily different. And, in the description of the embodiment of the present application, unless otherwise specified, the meaning of "multiple" means two or more.

[0053] An embodiment of the present application provides a display method for a foldable electronic device, and the method is applied to a foldable electronic device. The electronic device includes a folding screen and a non-folding screen. The folding screen can be folded to form at least two screens, and the two screens formed by the folding screen can be referred to as a first screen and a second screen. The non-folding screen cannot be folded, and the non-folding screen is arranged on the back of the folding screen, and can correspond to the first screen and / or the second screen of the folding screen. That is, for example, the non-folding screen can be arranged on the back of the first screen, and the orientation of the non-folding screen is opposite to that of the first screen.

[0054] When the electronic device is in a folded state, the non-folding screen is visible to the user, and the folding screen is invisible or partially visible to the user. For example, when the electronic device is in a fully folded state, the folding screen is invisible to the user. When the electronic device is in an unfolded state, both the non-folding screen and the folding screen are visible to the user. Therefore, in some embodiments, the non-folding screen of the electronic device can also be referred to as the external display screen of the electronic device, and the folding screen of the electronic device can also be referred to as the internal display screen of the electronic device.

[0055] For the convenience of describing the solution, in the embodiments of the present application, "folding screen" can be used to represent "foldable electronic device". That is to say, the "folding screen folding" described below in the embodiments of the present application can be understood as equivalent to the expression "folding of the foldable electronic device".

[0056] The two screens formed by folding the folding screen of the electronic device can be regarded as two display areas, display area A and display area B, respectively. For example, display area A can be called screen A of the folding screen (such as the first screen mentioned above), and display area B can be called screen B of the folding screen (such as the second screen mentioned above). Furthermore, the non-folding screen of the electronic device can be set on the back of screen A or screen B. In the embodiment of the present application, the non-folding screen can be called screen C. That is, screen C can be set on the back of screen A or screen B.

[0057] In the embodiment of the present application, after the folding screen of the electronic device is fully folded, the above-mentioned screen A and screen B are relative. From the user's perspective, when screen A and screen B are relative, the user is invisible. That is, after the folding screen is fully folded, the folding screen is invisible to the user. Regardless of whether the folding screen is folded or not, the non-folding screen, that is, screen C, is visible to the user.

[0058] That is to say, if the electronic device is in a fully folded state, the folded screen of the electronic device is not visible to the user, and the non-folded screen of the electronic device is visible to the user. If the electronic device is in a non-folded state, both the folded screen and the non-folded screen of the electronic device are visible to the user.

[0059] In some embodiments, the two screens formed by folding the folding screen, such as the above-mentioned screen A and screen B, can display the same interface together. Alternatively, the screen A and screen B formed by folding the folding screen can also display different interfaces respectively. For example, screen A and screen B can jointly display the application interface of the first application A. For another example, screen A can display the application interface of the first application A, but screen B displays the application interface of the first application B.

[0060] It should be noted that the at least two screens (such as screen A and screen B mentioned above) that the folding screen of the electronic device in the embodiment of the present application is divided into after being folded can be multiple independent screens, or can be a complete screen of an integrated structure, which is just folded into at least two parts. For example, the folding screen of the electronic device can be a flexible folding screen. The flexible folding screen includes a folding edge made of a flexible material. Part or all of the flexible folding screen is made of a flexible material. The at least two screens that the flexible folding screen is divided into after being folded are a complete screen of an integrated structure, which is just folded into at least two parts.

[0061] like Figure 1 As shown, Figure 1 Taking a mobile phone 10 as an example, a schematic diagram of a product form of a foldable electronic device is shown.

[0062] refer to Figure 1 , Figure 1 (a) shows a schematic diagram of the folding screen 11 of the mobile phone 10 when it is fully unfolded (α=180°). The folding screen 11 can be further folded into Figure 1 The folded state shown in (b) Figure 1 The folded state shown in (c), and Figure 1 The folded state shown in (d). Figure 1 As shown in (b), after the folding screen 11 is folded, it can be folded into Figure 1 Screen A and screen B shown in (b).

[0063] like Figure 1 As shown in (d), after the folding screen 11 (foldable inner display screen) of the mobile phone 10 is completely folded (α = 0°), the A screen and the B screen are opposite to each other and are invisible to the user. At the same time, the non-folding screen 12 (non-foldable outer display screen) of the mobile phone 10, i.e. Figure 1 (c) or Figure 1 The C screen shown in (d) is visible to the user. Figure 1 (c) or Figure 1 As shown in (d), the C screen is arranged on the back of the A screen.

[0064] Understandably, for Figure 1 For electronic devices with this type of folding screen (i.e., a folding screen that folds outward), when the folding screen is in a folded state, the electronic device can display the application interface on the non-folding screen, i.e., screen C. When the folding screen is in an unfolded state, the electronic device can display the application interface on screen A and / or screen B.

[0065] Generally speaking, the value range of the angle α between screen A and screen B of the folding screen is [0°, 180°]. In an embodiment of the present application, if α∈[0°, P1], the electronic device can determine that the folding screen is in a folded state. If α∈[P2, 180°], the electronic device can determine that the folding screen is in an unfolded state. Among them, in an embodiment of the present application, P1 is the first preset angle threshold, and P2 is the second preset angle threshold. For example, P1 and P2 can be determined based on the design configuration of the actual foldable product, or based on the usage habits of a large number of users using folding screens. Or, for another example, P1 and P2 can be set by the user in the electronic device.

[0066] In some embodiments, according to the usage habits of most users, when the angle α between screen A and screen B is greater than 90°, the user is more likely to use screen A and screen B as a whole (i.e., as a complete display screen). Therefore, the second preset angle threshold P2 may be greater than 90°, and P1 may be less than 90°. For example, P2 may be 145°, 170°, or 175°, etc. The first preset angle threshold P1 may be 5°, 8°, 10°, or 15°, etc.

[0067] For the above-mentioned non-foldable outer display screen (i.e. Figure 1 For an electronic device having a foldable inner display screen (such as a C screen), the outer display screen is usually arranged on the upper half of the foldable inner display screen (such as a Figure 1 At the same time, according to the product design habits of electronic devices and the requirements of camera functions, regardless of whether the electronic device is foldable or not, the assembly area (deco area) used to install hardware such as cameras is mostly on the same back side (such as the back side of the A screen).

[0068] This means that the non-foldable outer display screen of the electronic device (such as the C screen) and the deco area of ​​the electronic device need to be installed on the back (such as the back of the A screen).

[0069] like Figure 2 As shown, Figure 1 Taking the foldable mobile phone 10 as an example, a schematic diagram of a deco area of ​​a foldable electronic device is shown. Figure 2 , the non-foldable outer display screen 20 (such as C screen) and the deco area 21 of the electronic device can be separately installed on the electronic device. In this case, the non-foldable outer display screen 20 (such as C screen) and the deco area 21 each occupy a part of the area on the shell of the electronic device.

[0070] In other embodiments, in order to allow the non-foldable outer display screen (such as the C screen) to have a sufficiently large display area to display the application interface, the deco area of ​​the electronic device can also be set by digging a hole on the non-foldable outer display screen (such as the C screen).

[0071] like Figure 3 As shown, the same Figure 1 Taking the foldable mobile phone 10 as an example, a schematic diagram of the deco area of ​​another foldable electronic device is shown. Figure 3 , the deco area 31 for installing the camera is set in the lower left corner area of ​​the non-foldable outer display screen (30 such as C screen). In this case, the deco area 31 can be regarded as embedded in the surface of this non-foldable outer display screen 30 (such as C screen).

[0072] Furthermore, for Figure 2 For an electronic device in which the external display screen 20 (such as the C screen) is separately arranged from the deco area 21, when it is necessary to display an application interface on the external display screen 20 (such as the C screen), the electronic device can directly layout and draw the corresponding application interface according to the size of the external display screen 20 (such as the C screen) and display it on this external display screen 20.

[0073] However, for Figure 3 For this kind of electronic device that sets the deco area 31 by digging a hole on the external display screen 30 (such as the C screen), because the deco area 31 occupies a part of the external display screen 30 (such as the C screen), when it is necessary to display the application interface on the external display screen 20 (such as the C screen), it is necessary to consider avoiding the deco area 31 to prevent the deco area 31 from blocking the displayed content.

[0074] At present, according to different display requirements, for display screens with holes in the deco area, electronic devices mainly have three different display modes, including full-screen mode, deco avoidance normal mode and deco avoidance zoom mode.

[0075] The following describes the three display modes respectively in the embodiments of the present application.

[0076] like Figure 4-Figure 6 As shown, Figure 3 Taking the foldable mobile phone 10 as an example, Figure 4-Figure 6 The display schematic diagrams of an external display screen (such as screen C) are shown respectively. Figure 4 A display schematic diagram of the full screen mode is shown. Figure 5 A display diagram of the avoidance deco normal mode is shown. Figure 6 A display schematic diagram of the avoidance deco zoom mode is shown.

[0077] refer to Figure 4 In full-screen mode, the entire application window is displayed globally. It can be understood as a full-screen immersive display interface. Figure 4 As shown, the application interface 41 to be displayed by the mobile phone 10 can be displayed in full screen on the external display screen 30 (such as the C screen). In this way, the application interface 41 will be laid out in the deco area 31. However, for the interface content 42 in the application interface 41, in order to prevent the deco area 31 from blocking it, the interface content 42 can be avoided by obtaining the position and size of the deco area 31. Figure 4As shown, after the avoidance process, part of the content 43 at the bottom of the interface 41 is displayed to the right of the deco area 31. That is, the full screen mode can globally layout the background of the application interface to the deco area, but the content of the interface avoids the deco area accordingly to prevent the content from being blocked.

[0078] refer to Figure 5 , avoid deco normal mode This display mode, the entire application window avoids the deco area 31. Therefore, if Figure 5 As shown, it can be understood that the external display screen 30 (such as the C screen) is divided into two display areas, including a first display area 51 and a second display area 52.

[0079] In a specific embodiment, the first display area 51 and the second display area 52 can be distributed left and right, such as Figure 5 As shown in (a), the first display area 51 is located on the left side of the outer display screen 30, and the second display area 52 is located on the right side of the outer display screen 30. Alternatively, the first display area 51 and the second display area 52 can also be distributed up and down, such as Figure 5 As shown in (b), the first display area 51 is located below the outer display screen 30, and the second display area 52 is located above the outer display screen 30. That is, the avoidance deco area can be Figure 5 The vertical avoidance shown in (a) can also be Figure 5 The horizontal avoidance shown in (b) in FIG. 1 is a display area corresponding to the deco area 31, and the second display area 52 is a display area for displaying the application interface. It can be understood that the second display area 52 is the main display area for displaying the application interface divided by avoiding the deco area 31, and the first display area 51 is the additional display area after the second display area 52 avoids the deco area 31.

[0080] That is to say, in this display mode of avoiding the deco normal mode, the mobile phone 10 will not display the application interface in the first display area 51, but will compress and display all the application interfaces that need to be displayed in the second display area 52. That is, the mobile phone 10 actively compresses the display area where the application can be laid out to the second display area 52, so that the application side can only lay out and draw the application interface according to the size of the second display area 52, thereby completely avoiding the deco area 31 for displaying the application interface. In this case, when the electronic device displays the application interface on the external display screen 30 (such as the C screen), the first display area 51 will be vacated, that is, the first display area 51 will not display content.

[0081] refer to Figure 6 , avoid deco zoom mode, this display mode, and Figure 5The same as the normal mode of the avoidance deco shown in the figure is that the outer display screen 30 (such as the C screen) is also divided into two display areas. Figure 6 As shown, the display area is divided into a first display area 61 and a second display area 62. Similarly, the avoidance deco area can be Figure 6 The vertical avoidance shown in (a) can also be Figure 6 The lateral avoidance shown in (b) is shown in the figure. However, Figure 6 The avoidance deco scaling mode shown is similar to Figure 5 The avoidance deco normal mode shown will be different in the displayed processing flow.

[0082] As mentioned above, Figure 5 The avoidance deco normal mode shown is to directly place the layout display area (such as Figure 5 The second display area 52 in the layout is fed back to the application side, and the application side layouts and draws the application interface to be displayed according to the size of the layout display area. However, due to avoiding the deco area, the layout display area (such as Figure 5 The second display area 52 in Figure 4 For the full-screen mode shown, the display area available to the application side is reduced. Therefore, if the application side lays out and draws the application interface to be displayed according to this size, the interface content that can be drawn by the application side is limited, which may result in the interface content not being fully displayed.

[0083] Therefore, in order to be able to show complete, Figure 6 The avoidance deco zoom mode is based on the avoidance deco normal mode, and further enlarges the layout-capable display area (such as the second display area 62) as a whole before transmitting it to the application side. As a result, the application side can receive a layout-capable display area with a larger size.

[0084] In some embodiments, Figure 6 As shown, in the embodiment of the present application, the first display area 61 and the second display area 62 can be loaded with a high resolution, such as 1080p, so as to obtain an enlarged display area 63 corresponding to the second display area 62.

[0085] Then, the application side can layout and draw the application interface to be displayed in the enlarged layout-capable display area 63. Since the second display area 62 is enlarged to the display area 63, the application side can layout and draw more interface content to ensure that the interface content can be fully displayed. Finally, after the application side completes the layout and drawing of the application interface according to the enlarged display area 63, the electronic device shrinks the enlarged display area 63 as a whole to its original size and displays it on the external display screen 30 (such as the C screen). In this way, although the interface content of the application interface will be reduced accordingly after the size is reduced, for example, the font in the displayed application interface may become smaller, the interface content can still be fully displayed.

[0086] Android TM Take the system and vertical avoidance deco area as an example. Figure 7 A schematic diagram of the structure of a window layer of an outer display screen (such as a C screen) of a foldable electronic device is shown. Figure 7 The window layer shown illustrates the two display modes of the above-mentioned avoidance deco normal mode and avoidance deco zoom mode.

[0087] like Figure 7 As shown in the figure, Task is a collection of a series of Activities, which are arranged in a stack in the order in which they are opened. TM In the system, Activity is a component responsible for interacting with the user. It can be understood that Activity is a visual user interface responsible for creating a window, such as Figure 7 The application window WindowState is shown. Activity places user interface (UI) components through the created window and provides user interaction through the UI components.

[0088] ActivityRecord is an object corresponding to Activity, which is used to record and store Activity information. Generally, ActivityRecord objects are created during the startup of Activity components to describe the running status of Activity components.

[0089] The size of ActivityRecord depends on the size of Task, and the size of Task depends on the size of display. In normal cases, the size of ActivityRecord is equal to the size of Task. However, in the embodiment of the present application, the size of ActivityRecord is configured to be smaller than Task because of the need to avoid the deco area. When ActivityRecord is smaller than Task, there will be an extra display area, such as Figure 7 Then, in the embodiment of the present application, the sum of the size of LetterBox and ActivityRecord is equal to the size of Task. At this point, it can be understood that Task is a collection of a series of Activity+LetterBox.

[0090] It can be understood that, in simple terms, in the embodiments of the present application, Figure 7 The LetterBox area in corresponds to the first display area (such as the first display area 51 or the first display area 61) in the above-mentioned avoidance deco normal mode and avoidance deco zoom mode. At the same time, correspondingly, Figure 7 The ActivityRecord in the example is the second display area (such as the second display area 52 or the second display area 62) in the above-mentioned avoidance deco normal mode and avoidance deco zoom mode in the embodiment of the present application.

[0091] It should be noted that the specific size of ActivityRecord may be determined according to the design of the deco area in the actual electronic device, and the embodiment of the present application does not impose any limitation on this.

[0092] In summary, if a deco area is set by digging a hole on a non-folding screen (such as a C screen) of a foldable electronic device, when the application interface is displayed on this non-folding screen (such as a C screen), the first display area (such as the first display area 51 or the first display area 61, that is, there is a LetterBox layer with no display content) will be vacant. At the same time, the content of the second display area (such as the second display area 52 or the second display area 62) will be more crowded, thereby reducing the display effect and affecting the user experience.

[0093] Based on this, in order to ensure that the outer display screen including the deco area can avoid leaving the first display area empty, and to ensure that the second display area is not crowded, a better display effect can be obtained to improve the user experience. The embodiment of the present application provides a display method for a foldable electronic device. The method is applied to a foldable electronic device. In the embodiment of the present application, the electronic device includes a first display screen and a second display screen.

[0094] The first display screen is not foldable, such as the non-foldable screen (i.e., the non-foldable outer display screen). The second display screen is a foldable display screen, such as the foldable screen (i.e., the foldable inner display screen). In the embodiment of the present application, the second display screen can be folded to form two screens. The two screens formed after the second display screen is folded can refer to the following. Figure 1 The first display screen can be arranged on the back of one of the second display screens, such as Figure 1 As shown, the first display screen can be set on the back of screen A of the second display screen.

[0095] For the convenience of describing the scheme, the first display screen and the second display screen are used below to refer to the non-folding screen (i.e., the non-foldable outer display screen) and the folding screen (i.e., the foldable inner display screen) of the electronic device, respectively.

[0096] Meanwhile, in the embodiment of the present application, a deco area is provided on the first display screen of the electronic device. In some embodiments, the deco area can be provided by digging a hole on the first display screen.

[0097] For example, Figure 1 For example, the first display screen in the embodiment of the present application may be Figure 1 The non-folding screen 12 of the mobile phone 10 is the C screen. The second display screen in the embodiment of the present application can be Figure 1 The folding screen 11 of the mobile phone 10 may include two screens, an A screen and a B screen, after being folded.

[0098] In addition, in the embodiment of the present application, the first display screen includes a first display area and a second display area. The first display area is a display area corresponding to the above-mentioned deco area, such as Figure 5 The first display area 51 shown or Figure 6 The second display area is the display area of ​​the first display screen except the first display area, such as Figure 5 The second display area 52 shown or Figure 6 The second display area 62 is shown.

[0099] It can be understood that the second display area is a display area in the first display screen that is mainly used to display the application interface. When the second display area does not avoid the deco area but part of the interface content displayed in the second display area avoids the deco area, the second display area can be regarded as a full-screen display area, that is, the entire application window of the application will be globally displayed on the first display screen, but part of the interface content of the application window is in a state of avoiding the deco area, that is, Figure 4The full screen mode shown. When the second display area avoids the deco area, a portion of the display area will be vacated on the first display screen. This vacated portion of the display area is the first display area in the embodiment of the present application. Therefore, the first display area in the embodiment of the present application can be understood as the remaining display area of ​​the first display screen after the electronic device displays an interface (such as a second application interface) in the second display area to avoid the deco area.

[0100] Specifically, through the display method of the foldable electronic device provided in the embodiment of the present application, when the electronic device receives a first operation that needs to trigger the electronic device to display the first application interface of the first application on the first display screen, the electronic device can respond to the first operation and display the second interface in the second display area while also displaying the first interface in the first display area.

[0101] Among them, the first interface is an interface obtained based on the second interface, and the second interface includes a second application interface. Further, since the second interface includes the second application interface, the first interface in the implementation of this application can also be obtained based on the second application interface. In the embodiment of the present application, the second application interface included in the first interface is the same application interface as the first application interface of the first application. It can be understood that the first application interface and the second application interface are both application interfaces of the first application.

[0102] In some embodiments, the first application interface and the second application interface have the same interface content, but different sizes. Because the first display screen is usually smaller in size, for example, the size of the first display screen may be only half the size of the second display screen. At the same time, the second display area is only a part of the display area of ​​the first display screen. Therefore, when the first application interface of the first application is displayed in the second display area of ​​the first display screen, it may be necessary to reduce the adaptability of the original first application interface of the first application. Therefore, in an embodiment of the present application, the second application interface can be an application interface that is reduced by reducing the first application interface. In other words, compared with the first application interface, the second application interface is only reduced in size, but the interface content is still the same.

[0103] Among them, the first interface displayed in the above-mentioned first display area can be set according to actual needs.

[0104] For example, in some embodiments, the first interface may be a solid color interface. In a specific embodiment, the first interface may be a solid color interface with the same background color as the second application interface in the first interface. That is, the electronic device may display a static solid color background in the first display area while displaying the second interface in the second display area. Figure 8As shown, the electronic device can directly fill the first display area with a solid color that is the same as or similar to the background of the second application interface displayed in the second display area.

[0105] For another example, in some embodiments, the first interface may be an interface with a gradient effect in interface color. In a specific embodiment, the interface color of the first interface may be the same as the background color of the second application interface in the first interface. That is, the electronic device may display a background image with a gradient effect in the first display area while displaying the second interface in the second display area. Fig. 9 As shown, after determining to fill the second display area with a solid color that is the same as or similar to the background of the second application interface displayed in the second display area, the electronic device can generate a linear gradient effect for the solid color and then display it in the first display area.

[0106] For another example, in some embodiments, the electronic device may also dynamically display content related to the second application interface displayed in the second display area in the first display area. Exemplarily, the electronic device may dynamically perform relevant image processing on the second application interface displayed in the second display area according to the size that the first display area can display, obtain a third application interface corresponding to the second application interface, and then display the third application interface in the first display area.

[0107] In a specific embodiment, the electronic device can blur the second application interface displayed in the second display area to obtain a third application interface, and then display the third application interface in the first display area. That is, in the embodiment of the present application, the third application interface is the blurred second application interface.

[0108] It is understandable that when the first display area does not include other display content, the first interface displayed in the first display area is the third application interface. When the first display area includes other display content, the first interface displayed in the first display area is the interface including the third application interface.

[0109] In another specific embodiment, Figure 5 or Figure 6 As shown, the size of the first display area may be smaller than the size of the second display area. Therefore, when the blurred second application interface needs to be displayed in the first display area, the second application interface needs to be cropped to adapt to the display size of the first display area. Fig.10As shown, the electronic device can crop and blur the second application interface 1001 displayed in the second display area, obtain the cropped and blurred third application interface 1002 corresponding to the second application interface 1001, and then display the third application interface 1002 in the first display area. Similarly, when the first display area does not include other display content, the first interface displayed in the first display area is the third application interface 1002. When the first display area includes other display content, the first interface displayed in the first display area is the interface including the third application interface 1002.

[0110] Understandably, Fig.10 In this display mode, since the third application interface displayed in the first display area is obtained by dynamically cropping and blurring the second application interface displayed in the second display area, whenever the second display area switches to display a different second application interface, the first display area can synchronously switch to display the corresponding cropped and blurred third application interface.

[0111] Therefore, whether it is Figure 8 , Fig. 9 or Fig.10 Whichever display mode is used, it can ensure that the first display area is not left empty when the second application interface of the first application is displayed on the first display screen of the electronic device. In addition, the color that is the same as or similar to the background color of the second application interface displayed in the second display area is selected as much as possible to display in the first display area, which can also improve the uniformity of the display.

[0112] in addition, Fig.10 This dynamic display method is more convenient than the second display area because the third application interface displayed in the second display area is based on the second application interface. Figure 8 and Fig. 9 In terms of display mode, Fig.10 This display method will make the interface more unified and provide users with a stronger sense of immersion.

[0113] In response to the problem that the second display area is crowded, in the display method provided in the embodiment of the present application, the electronic device can display some content that needs to be fixedly displayed or displayed for a long time in the second display area in the first display area. For example, the electronic device can display the status elements originally displayed in the second display area in the first display area. In some embodiments, the status elements include any one or more of time, notification capsules, signal grids, network icons, and volume icons. Among them, notification capsules can be used to display application notification information, flight notification information, etc.

[0114] That is, the electronic device can put the time, notification capsules and other status elements in the second interface displayed in the second display area into the first interface of the first display area for display. In this way, the status elements that originally occupied the second display area no longer need to occupy the second display area, thereby reducing the congestion of the second display area.

[0115] like Fig.11 As shown, Fig.10 Taking the second application interface 1001 and the third application interface 1002 as examples, a schematic diagram of an interface of a first display screen displaying status elements is shown.

[0116] Fig.11 (a) is a schematic diagram of an interface in which all status elements are displayed in the second display area. Fig.11 (b) shows an interface schematic diagram in which the first display area and the second display area each display a portion of the status elements.

[0117] like Fig.11 As shown in (a), the second interface displayed in the second display area of ​​the first display screen includes not only the second application interface 1001 of the first application, but also the state element 1003. Fig.11 As shown in (a), the status element 1003 includes time, a notification capsule for notifying flight information, a signal bar, and a battery icon.

[0118] like Fig.11 As shown in (b), the first interface displayed in the first display area displays the time and notification capsules in addition to the third application interface 1002 after the second application interface 1001 is cropped and blurred. Correspondingly, the status element 1003 in the second interface displayed in the second display area does not include the display of the time and notification capsules.

[0119] Therefore, by comparing Fig.11 As can be seen from (a) and (b), after the status elements such as time and capsules originally displayed in the second display area are displayed in the first display area, the display content in the second display area is not so crowded, thereby improving the display effect.

[0120] In some embodiments, the first operation may include at least two situations. The first situation is that the user directly opens the first application on the first display screen. The second situation is that the user switches screens. The two situations are described below.

[0121] The first case is that the first operation is the user's direct opening operation of the first application on the first display screen. In this case, that is, the electronic device can display the first interface in the first display area of ​​the first display screen and the second interface in the second display area of ​​the first display screen in response to the user's opening operation of the first application on the first display screen. Among them, the first interface is obtained based on the second interface, the second interface includes the second application interface, and the first application interface and the second application interface are the same application interface. In an embodiment of the present application, the first interface includes a third application interface, and the third application interface can be an application interface obtained by cropping and blurring the second application interface.

[0122] In a specific embodiment, the user's opening operation on the first application may be a click operation to start the first application. For example, the user clicks on the application icon corresponding to the first application on the first display screen. Alternatively, the user's opening operation on the first application may also be the user's switching operation on the first display screen. For example, if the second display screen currently displays the application interface of the second application, then when the user operates on the first display screen to switch the currently displayed second application to the first application, it can also be regarded as the user's opening operation on the first display screen, that is, the first operation of the embodiment of the present application.

[0123] The second case is that the first operation is a screen switching operation of the user. Since the display method provided in the embodiment of the present application is mainly for an external display screen including a deco area. Therefore, in this case, that is to say, the electronic device can respond to the screen switching operation of the user switching from the second display screen to the first display screen, display the first interface in the first display area of ​​the first display screen, and display the second interface in the second display area of ​​the first display screen. Among them, the first interface is obtained based on the second interface, the second interface includes a second application interface, and the first application interface and the second application interface are the same application interface. In an embodiment of the present application, the first interface includes a third application interface, and the third application interface can be an application interface obtained by cropping and blurring the second application interface.

[0124] It should be noted that the first application in the first case is the application opened by the user, but in the second case, the first application is the application currently displayed on the second display screen when the screen is switched. For example, when the electronic device receives the user's screen switching operation, if the first application currently displayed on the second display screen is the first application A, then when switching to the first display screen, the first display screen should also display the first application A.

[0125] In a specific embodiment, the screen switching operation of the user may be a folding operation of the electronic device by the user. That is, when the user operates the electronic device from the unfolded state to the folded state, since the second display screen is not visible to the user in the folded state, the folding operation may be regarded as a screen switching operation of the user switching from the second display screen to the first display screen.

[0126] In some embodiments, the unfolded state and folded state of the electronic device can be determined by the angle of the hinge. For example, the angle α between the A screen and the B screen can be used to determine whether the electronic device is currently in a folded state or an unfolded state. For details, please refer to the above explanation of the angle α, which will not be described in detail in the embodiments of the present application.

[0127] In general, in the second case, any user operation that triggers the electronic device to switch to the first display screen can be regarded as the user's screen switching operation in the embodiment of the present application, that is, as a display event of the first display screen in the embodiment of the present application.

[0128] In some embodiments, before the electronic device responds to the received first operation, the electronic device may further determine whether the first application is the target application. In the case where the first application is the target application, it means that the first application opened corresponding to the user's first operation is an application pre-configured to display the first interface in the first display area. Then the electronic device displays the first interface in the first display area, and at the same time displays the second interface including the second application interface in the second display area. For example, after the electronic device determines that the first application is the target application, it crops and blurs the second application interface displayed in the second display area to obtain a third application interface displayed in the first display area.

[0129] If the electronic device determines that the first application is not the target application, then it means that the first application is not a pre-configured application that needs to display the first interface in the first display area. Then the electronic device can choose not to display the first interface in the first display area, and only display the second interface including the second application interface in the second display area.

[0130] In a specific embodiment, the electronic device can determine the target application through a pre-configured whitelist. For example, when the whitelist stores all target applications, then when the first application is included in the whitelist, the electronic device can determine that the first application is on the whitelist. If none of the applications stored in the whitelist is a target application, then when the first application is not included in the whitelist, the electronic device can determine that the first application is a target application.

[0131] It should be noted that the display method of the foldable electronic device provided in the embodiment of the present application is not limited to being applied to the above Figure 1 , Figure 2It can be understood that as long as the display screen on the electronic device has a hole to set the deco area, and the display screen is configured to adopt the above-mentioned deco avoidance normal mode and / or deco avoidance zoom mode display mode. Then, in order to avoid the first display area of ​​the display screen from being vacated, and to avoid the second display area of ​​the display screen from being crowded, the display method provided in the embodiment of the present application can be applied to the electronic device including the display screen.

[0132] It can be understood that the electronic device mentioned above in the embodiment of the present application can be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, as well as a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) device and other devices including the above-mentioned first display screen and the second display screen. The embodiment of the present application does not impose any special limitation on the specific form of the electronic device.

[0133] Fig.12 A schematic diagram of the structure of an electronic device 1200 provided in an embodiment of the present application.

[0134] like Fig.12 As shown, the electronic device may include a processor 1210, an external memory interface 1220, an internal memory 1221, a universal serial bus (USB) interface 1230, a charging management module 1240, a power management module 1241, a battery 1242, an antenna 1, an antenna 2, a mobile communication module 1250, a wireless communication module 1260, an audio module 1270, a speaker 1270A, a receiver 1270B, a microphone 1270C, an earphone interface 1270D, a sensor module 1280, a button 1290, a motor 1291, an indicator 1292, a camera module 1293, a display screen 1294, and a subscriber identification module (SIM) card interface 1295, etc.

[0135] The display screen 1294 includes a first display screen and a second display screen. The sensor module 1280 may include an acceleration sensor 1280A and a gyroscope sensor 1280B. In some embodiments, the sensor module 1280 may also include an air pressure sensor, a magnetic sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and a shaft sensor (not shown in the drawings).

[0136] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0137] The processor 1210 may include one or more processing units, for example: the processor 1210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. The processor 1210 can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. For example, in an embodiment of the present application, the display method of a foldable electronic device recorded in any embodiment can be executed by the processor 1210.

[0138] The processor 1210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1210 is a cache memory. The memory may store instructions or data that the processor 1210 has just used or cyclically used. If the processor 1210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1210, and thus improves the efficiency of the system.

[0139] In some embodiments, the processor 1210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0140] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0141] The external memory interface 1220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1200. The external memory card communicates with the processor 1210 through the external memory interface 1220 to implement a data storage function. For example, files such as music and videos are stored in the external memory card. Or files such as music and videos are transferred from the electronic device to the external memory card.

[0142] The internal memory 1221 can be used to store computer executable program codes, which include instructions. The internal memory 1221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 1200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 1221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 1210 executes various functional methods or data processing of the electronic device 1200 by running instructions stored in the internal memory 1221, and / or instructions stored in a memory provided in the processor.

[0143] The USB interface 1230 is an interface that complies with USB standard specifications and can be used to connect the electronic device 1200 and peripheral devices. Specifically, it can be a Mini USB connector, a Micro USB connector, a USB Type C connector, etc.

[0144] The charging management module 1240 is used to receive charging input from the charger. The power management module 1241 is used to connect the battery 1242, the charging management module 1240 and the processor 1210. While the charging management module 1240 charges the battery 1242, it can also power the electronic device through the power management module 1241.

[0145] The wireless communication function of the electronic device 1200 can be implemented through antenna 1, antenna 2, mobile communication module 1250, wireless communication module 1260, modulation and demodulation processor and baseband processor. Among them, antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 1250 can provide solutions for wireless communication including 2G / 3G / 4G / 5G applied to the electronic device 1200. The modulation and demodulation processor may include a modulator and a demodulator.

[0146] The wireless communication module 1260 can provide wireless communication solutions for application in the electronic device 1200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0147] In some embodiments, the antenna 1 of the electronic device 1200 is coupled to the mobile communication module 1250, and the antenna 2 is coupled to the wireless communication module 1260, so that the electronic device 1200 can communicate with the network and other electronic devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0148] The electronic device 1200 can realize the display function through a GPU, a display screen 1294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 1294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 1210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0149] The display screen 1294 is used to display images, videos, etc. In the embodiment of the present application, the display screen 1294 includes a first display screen and a second display screen. The first display screen is not foldable, and the second display screen can be folded to form two screens. At the same time, a deco area is set on the first display screen.

[0150] The display screen 1294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.

[0151] The electronic device 1200 can realize the camera function through the camera module 1293, ISP, video codec, GPU, display screen 1294, application processor AP, neural network processor NPU, etc. Among them, the camera module 1293 can be used to collect color image data and depth data of the photographed object. The ISP can be used to process the color image data collected by the camera module 1293. In some embodiments, the camera module 1293 can be composed of a color camera module and a 3D sensing module. In other embodiments, the camera module 1293 can also be composed of two or more cameras.

[0152] The electronic device 1200 can implement audio functions such as music playing and recording through the audio module 1270, the speaker 1270A, the receiver 1270B, the microphone 1270C, the headphone jack 1270D, and the application processor.

[0153] The gyroscope sensor 1280B can be used to determine the motion posture of the electronic device 1200. In some embodiments, the angular velocity of the electronic device 1200 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 1280B. Specifically, in the embodiment of the present application, the second display screen (i.e., the folding screen) can be divided into multiple screens, and each screen can include a corresponding gyroscope sensor 1280B. Figure 1 The A screen and the B screen shown, both the A screen and the B screen may include a gyroscope sensor 1280B. Among them, the gyroscope sensor 1280B is used to measure the angle between the x-axis, y-axis and z-axis of the corresponding screen and the horizontal plane. In addition, the gyroscope sensor 1280B is also used to measure the orientation of the corresponding screen (i.e., the direction vector of the orientation). The electronic device 1200 can determine the angle of the second display screen (i.e., the folding screen) based on the measured angular change of the orientation of each screen. And then determine whether it is in a folded state or a non-folded state based on the angle of the second display screen (i.e., the folding screen).

[0154] For example, the second display screen of the electronic device (i.e., a folding screen, such as Figure 1 As shown in the figure, the folding screen 11 of the mobile phone 10 can be folded into screen A and screen B. Fig.13 As shown in (b) in FIG. 1 , screen A is located at the upper half of the mobile phone 10, and screen B is located at the lower half of the mobile phone 10. Assume that screen A is provided with a gyroscope sensor a, and screen B is provided with a gyroscope sensor b.

[0155] like Fig.13 As shown in (a), it shows that when the folding screen is in the unfolded state, the gyroscope sensor a is O A Schematic diagram of the x-axis, y-axis and z-axis of the coordinate origin, and the gyroscope sensor b with O B is a schematic diagram of the x-axis, y-axis and z-axis of the coordinate origin. Fig.13 As shown in (b), it shows that when the folding screen is in a semi-folded state, the gyroscope sensor a is O A Schematic diagram of the x-axis, y-axis and z-axis of the coordinate origin, and the gyroscope sensor b with O B is a schematic diagram of the x-axis, y-axis and z-axis of the coordinate origin. Fig.13 As shown in (c) of FIG. 1 , it shows that when the folding screen is in a fully folded state, the gyroscope sensor a is O A Schematic diagram of the x-axis, y-axis and z-axis of the coordinate origin, and the gyroscope sensor b with O B is a schematic diagram of the x-axis, y-axis and z-axis of the coordinate origin. Fig.13 As shown in (a) in the figure, 05 and 06 are both short sides of the mobile phone 10, and 01 and 02 constitute a long side of the mobile phone 10.

[0156] It should be noted that if Fig.13(a) Fig.13 (b) or Fig.13 As shown in (c), O A The x-axis, y-axis and z-axis form a right-handed rectangular coordinate system with O as the origin. B The x-axis, y-axis and z-axis form a right-handed rectangular coordinate system. A It can be any point on the upper half of the phone.

[0157] For example, Fig.13 (a) Fig.13 (b) or Fig.13 In (c), O A Take the upper right corner of the phone as an example. B This can be any point on the lower half of the phone. For example, Fig.13 (a) Fig.13 (b) or Fig.13 In (c), O B Take the lower right corner of the phone as an example.

[0158] Among them, Fig.13 (a) Fig.13 (b) or Fig.13 From (c) in the figure, we can see that: (1): Regardless of the state of the second display screen (i.e., the folding screen) (e.g., the unfolded state, the semi-folded state, or the folded state), the x-axis of gyroscope sensor a and the x-axis of gyroscope sensor b point in the same direction. (2): When the second display screen (i.e., the folding screen) is in the unfolded state, the y-axis of gyroscope sensor a and the y-axis of gyroscope sensor b point in opposite directions, and the z-axis of gyroscope sensor a and the z-axis of gyroscope sensor b point in opposite directions. (3): When the second display screen (i.e., the folding screen) is in the semi-folded state, the angle between the y-axis of gyroscope sensor a and the y-axis of gyroscope sensor b is in the range of (0°, 180°), and the angle between the z-axis of gyroscope sensor a and the z-axis of gyroscope sensor b is in the range of (0°, 180°). (4): When the second display screen (i.e., the folding screen) is in the folded state, the x-axis of gyro sensor a and the x-axis of gyro sensor b point in the same direction, the y-axis of gyro sensor a and the y-axis of gyro sensor b point in the same direction, and the z-axis of gyro sensor a and the z-axis of gyro sensor b point in the same direction.

[0159] In the embodiment of the present application, the x-axis, y-axis and z-axis of the A screen and the B screen of the second display screen (ie, the folding screen) include but are not limited to: Fig.13 The x-axis, y-axis and z-axis are shown.

[0160] For example, in some embodiments, when the second display screen (i.e., the folding screen) is in the unfolded state, the x-axis of gyroscope sensor a and the x-axis of gyroscope sensor b point to the same direction, the y-axis of gyroscope sensor a and the y-axis of gyroscope sensor b point to opposite directions, and the z-axis of gyroscope sensor a and the z-axis of gyroscope sensor b point to the same direction. Alternatively, when the second display screen (i.e., the folding screen) is in the unfolded state, the x-axis of gyroscope sensor a and the x-axis of gyroscope sensor b point to the same direction, the y-axis of gyroscope sensor a and the y-axis of gyroscope sensor b point to the same direction, and the z-axis of gyroscope sensor a and the z-axis of gyroscope sensor b point to opposite directions.

[0161] The button 1290 may include a power button, a volume button, etc. The button 1290 may be a mechanical button. It may also be a touch button. The electronic device 1200 may receive a button input and generate a key signal input related to the user settings and function control of the electronic device 1200. The motor 1291 may generate a vibration prompt. The motor 1291 may be used for an incoming call vibration prompt or for touch vibration feedback. The indicator 1292 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 1295 is used to connect a SIM card. The SIM card may be brought into contact with and separated from the electronic device 1200 by inserting the SIM card interface 1295 or pulling it out from the SIM card interface 1295. The electronic device 1200 may support one or more SIM card interfaces.

[0162] It should be noted that the display methods of the foldable electronic device provided in the following embodiments can all be implemented in the electronic device 1200 having the above-mentioned hardware structure.

[0163] In some embodiments, the software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. TM Taking the system as an example, the software structure of the electronic device is illustrated.

[0164] Fig.14 This is a software structure diagram of the electronic device provided in the embodiment of the present application. The layered architecture can divide the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces.

[0165] In some embodiments, the Android TM The system is divided into five layers, such as Fig.14As shown, from top to bottom are the application layer, the application framework layer, the hardware abstraction layer (HAL) layer, the kernel layer (also called the driver layer), and the hardware layer.

[0166] The application layer can include a series of applications. Fig.14 As shown, the application layer may include applications such as camera, gallery, calendar, call, map, music, video, etc. It should be noted that the application in the electronic device can be installed according to actual needs, and the embodiment of the present application does not make any limitation on this. For example, the application layer may also include applications such as navigation, WLAN, Bluetooth, short message, etc.

[0167] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0168] like Fig.14 As shown, in the embodiment of the present application, the application framework layer may include a window manager service (windowmanager service, WMS), an activity manager service (activity manager service, AMS), an input manager service (input manager service, IMS), a sensor manager (Sensor Manager), a display management service (display manager service, DMS), a layer synthesis service (Surface Flinger, SF), a layer processing tool (Surface Control), an Activity stack management module (Task Organize), a LetterBox module, a folding screen state management module (fold screen manager), etc. Optionally, the application framework layer may also include a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. (not shown in the drawings).

[0169] Among them, the window management service WMS provides window management services, which can be used for window management, window animation management, surface management, and as a transfer station for the input system. The activity management service AMS provides activity management services, which can be used for the startup, switching, and scheduling of system components (such as activities, services, content providers, and broadcast receivers) as well as the management and scheduling of application processes. The input management service IMS can provide input management services, which can be used to manage the input of the system, such as touch screen input, key input, sensor input, etc. For example, IMS is used to extract events from input device nodes and distribute events to appropriate windows through interaction with WMS.

[0170] The sensor manager is used to receive and manage the data collected by the sensors transmitted at the bottom layer. The display management service DMS mainly provides display management services, which can be used to manage the life cycle, addition, removal, and status update of display devices.

[0171] Surface Flinger is mainly used to implement the creation, control, and management of surfaces. For example, in the embodiment of the present application, Surface Flinger can draw specific window contents and complete the drawing of each frame of image refresh. SurfaceControl can be used to create, crop, blur, and other processes of layers. It can be understood that Surface Control mainly relies on the ability of Surface Flinger to implement the creation, crop, blur, and other processes of layers.

[0172] The Activity stack management module can be used to manage the Activity stack. For example, in an embodiment of the present application, the Activity stack management module can be used to monitor whether the drawing of the first application interface of the top application window in the Task is completed.

[0173] The folding screen state management module is used to manage the state of the electronic device display screen (such as the first display screen and the second display screen). For example, the folding screen state management module can determine whether the folding screen (i.e., the second display screen) is folded by the angle detected by the sensor of the hardware layer.

[0174] The LetterBox module is a module in which the corresponding functions are expanded on the basis of the original LetterBox module in the embodiment of the present application. In the embodiment of the present application, the LetterBox module is a module for managing the LetterBox layer. The LetterBox layer is the layer corresponding to the display of the first display area.

[0175] Specifically in the embodiment of the present application, the LetterBox module can call Surface Control to map, crop, blur, etc. the application window layer of the first application displayed in the second display area, and then set the obtained layer data to be displayed in the first display area. As a result, the first display area (such as the first display area 51 or the first display area 61) of the non-foldable external display screen in the electronic device can dynamically display the blurred third application interface related to the second application interface in the second display area, thereby ensuring that the first display area is not vacated.

[0176] The hardware abstraction layer runs in user space, encapsulates kernel layer drivers, and provides a calling interface to the upper layer. Fig.14 As shown, the hardware abstraction layer may include at least sensor HAL, display HAL, audio HAL, etc.

[0177] The kernel layer is the layer between hardware and software. Fig.14 As shown, the kernel layer may include at least sensor drivers, display drivers, audio drivers, etc. The hardware layer may include sensors and multiple display screens.

[0178] like Fig.14 As shown, the display screen in the hardware layer may include a first display screen (non-foldable outer display screen) and a second display screen (foldable inner display screen). Among them, the first display screen is the non-folding screen mentioned above, and the second display screen is the folding screen mentioned above. The sensors in the hardware layer may include multiple ones according to actual functional requirements. For example, it may include acceleration sensor 1, gyroscope sensor 1, acceleration sensor 2, gyroscope sensor 2, etc. Among them, acceleration sensor 1 and gyroscope sensor 1 may be set in one screen (such as the above-mentioned A screen) of the second display screen (i.e., folding screen). Acceleration sensor 2 and gyroscope sensor 2 may be set in another screen (such as the above-mentioned B screen) of the second display screen (i.e., folding screen).

[0179] Fig.15 A module frame diagram of a display device of a foldable electronic device is shown below. Fig.15 The module framework diagram shown illustrates the display method of the foldable electronic device provided in the embodiment of the present application.

[0180] like Fig.15 As shown, the module framework includes an application-side window drawing control module, an Activity stack management module, a LetterBox module, a Surface Control, and a Surface Flinger.

[0181] The application-side window drawing control module is used to refresh the drawing of the window layer, and after completing the drawing of the first and second application interfaces in the window layer, it notifies the Activity stack management module that the window drawing is completed. In the embodiment of the present application, the application-side window drawing control module mainly calls the capability of Surface Flinger to perform window drawing.

[0182] After the Activity stack management module receives the window drawing completion notification from the application-side window drawing control module, it notifies the LetterBox module that layer mapping can be performed. After the LetterBox module receives the notification that layer mapping can be performed, it calls Surface Control to create, map, crop, and blur the virtual layer. That is, the LetterBox module calls Surface Control to create a new virtual layer, then maps the window layer including the second application interface to this virtual layer, then crops the mapped virtual layer, and finally blurs the cropped virtual layer.

[0183] Among them, in the embodiments of the present application, Fig.15 As shown, Surface Control mainly calls the capabilities of SurfaceFlinger to complete the creation, mapping, cropping and blurring of virtual layers. Then, the LetterBox module sets the blurred virtual layer to the first display area, and the first display area can display the third application interface after the corresponding cropping and blurring of the second application interface.

[0184] Hereinafter, the display method of the foldable electronic device provided by the embodiment of the present application will be described in detail from the perspective of the interaction between the modules in the electronic device in combination with the accompanying drawings.

[0185] Fig.16 A schematic diagram of an interactive process of a display method for a foldable electronic device is shown.

[0186] It should be noted that Fig.16 This is an interactive process for the first operation in the first case, that is, for the user opening the first application directly on the first display screen.

[0187] The following, combined Fig.16 The display method of the foldable electronic device provided in the embodiment of the present application is described.

[0188] like Fig.16As shown, first, the window management service WMS registers a callback function in the Activity stack management module to monitor whether the first application interface of the top application window is drawn. It can be understood that the top application is the application displayed at the top layer, that is, whichever first application the user currently opens, this first application will be switched to the top application. Therefore, the top application window is the application window of the top application, which can be regarded as the application window of the first application in the embodiment of the present application.

[0189] Then, after receiving the user's opening operation for the first application, the window management service WMS switches the top application window in response to the user's opening operation. That is, since the first application is the application currently opened by the user, the window management service WMS switches the application window of the first application to the top application window.

[0190] At this time, the window management service WMS is also in a state of waiting for the Activity stack management module to feedback that the first application interface (the first second application interface) of the top application window (the application window of the first application) is drawn.

[0191] Furthermore, if the Activity stack management module monitors that the first application interface (first second application interface) of the top application window (application window of the first application) is drawn, it will feedback to the window management service WMS that the first application interface (first second application interface) of the top application window (application window of the first application) is drawn.

[0192] After the window management service WMS receives the feedback from the Activity stack management module that the first application interface (the first second application interface) of the top application window (the application window of the first application) is drawn, the window management service WMS can call the LetterBox interface to notify the LetterBox module to set the top application window layer mapping.

[0193] The LetterBox module can map the second application interface of the first application displayed in the second display area to the first display area through window layer mapping, so that the first display area can also synchronously display the second application interface of the first application. Further, after completing the mapping, the LetterBox module can crop and blur the mapped layer to obtain a cropped and blurred third application interface corresponding to the second application interface, and then the first display area displays the third application interface.

[0194] Specifically, if Fig.16As shown, after the LetterBox module receives the notification from the window management service WMS, first, the LetterBox module calls Surface Control to create a new virtual layer. The function corresponding to the new virtual layer may be SurfaceControl.Buidler#build. It can be understood that since the new virtual layer is created to map the top application window layer. Therefore, in some embodiments, the size of the new virtual layer may be the same as the size of the top application window layer. That is, the size of the new virtual layer is the same as the size of the window layer of the first application.

[0195] After Surface Control completes the creation of the virtual layer, it returns the virtual layer to the LetterBox module. At this time, the virtual layer returned by Surface Control does not include any content and can be understood as an empty layer.

[0196] Then, the LetterBox module calls Surface Control to map the layer of the top application window to the virtual layer. The corresponding function can be SurfaceControl.mirrorSuface. At this time, the top application is the first application corresponding to the user's open operation, that is, the window layer of the first application is mapped to the newly created virtual layer. After the mapping is completed, the virtual layer already has the mapping data of the top application window layer, and the virtual layer will change with the changes of the top application window layer. That is, any new refresh changes of the top window layer can be reflected in the virtual layer.

[0197] That is to say, after the mapping is completed, the virtual layer already has the mapping data of the first application window layer, and the first application window layer includes the second application interface of the first application, so after mapping, the virtual layer also includes the second application interface of the first application. Moreover, any new refresh changes of the first application window layer can be reflected in the virtual layer. For example, when the second application interface in the first application window layer is switched, the virtual layer will also switch to the corresponding blurred third application interface.

[0198] Finally, in order to make the virtual layer display in accordance with the size of the first display area, so that the virtual layer can be filled into the area of ​​the same size as the first display area, after the mapping is completed, the LetterBox module calls Surface Control again to crop the virtual layer according to the size of the first display area. In other words, the LetterBox module calls Surface Control again to crop the virtual layer mapped with the top application window layer according to the size of the first display area. The function corresponding to cropping can be SurfaceControl.Transaction#setCrop.

[0199] In some embodiments, if the height of the first display area is the same as that of the second display area (corresponding to the vertical avoidance of the deco area), the cropping can be performed according to the width of the first display area, that is, the virtual layer is cropped according to the width of the first display area. If the width of the first display area is the same as that of the second display area (corresponding to the horizontal avoidance of the deco area), the cropping can be performed according to the height of the first display area, that is, the virtual layer is cropped according to the height of the first display area.

[0200] After Surface Control completes cropping of the virtual layer, it returns the cropped virtual layer to the LetterBox module. After the LetterBox module obtains the cropped virtual layer, it finally calls Surface Control to blur the cropped virtual layer. The corresponding function for blurring can be SurfaceControl.Transition#setBlurEffect.

[0201] It is understandable that the blurring process may adopt any existing algorithm, and the present application embodiment does not impose any limitation on this. For example, Gaussian blurring may be performed on the virtual layer.

[0202] After Surface Control blurs the cropped virtual layer, it returns the blurred virtual layer to the LetterBox module. After the LetterBox module receives the blurred virtual layer sent by Surface Control, it can display the blurred virtual layer in the first display area. At this time, the first display area can display a blurred dynamic background image synchronized with the application window content of the first application. That is, the first display area can synchronously display the blurred third application interface corresponding to the second application interface in the second display area.

[0203] Understandable, such as Figure 7As shown in the window layer structure of FIG. 1 , the first display area in the embodiment of the present application is mainly realized by LetterBox. Therefore, the embodiment of the present application sets the blurred virtual layer to be displayed in the first display area, which can be understood as setting the blurred virtual layer in the LetterBox layer. Figure 7 The LetterBox in the image displays a blurred dynamic background image that is synchronized with the application window content of the first application.

[0204] At this point, since the virtual layer maps the second application interface of the first application, and the virtual layer is displayed in the first display area after being cropped and blurred, the third application interface displayed in the first display area can be regarded as an application interface of the second application interface after being cropped and blurred.

[0205] In some embodiments, the first display area may display a first interface, which includes the third application interface and a portion of status elements. The second display area may display a second interface, which includes the second application interface of the first application and another portion of status elements. The third application interface is an application interface after the second application interface is cropped and blurred. The second application interface is the same application interface as the first application interface of the first application, and the second application interface may be a reduced first application interface of the first application.

[0206] Take the vertical avoidance deco area as an example. Fig.17 A processing flow chart of an application interface is shown. Fig.17 The above-mentioned mapping, cropping, blurring and other processing processes are explained.

[0207] like Fig.17 As shown, Fig.17 As shown in (a), the first display area 1701 is empty, and only the second display area 1702 displays the window layer of the first application, that is, the second display area 1702 displays the interface diagram of the second application interface 1703.

[0208] Fig.17 (b) shows a virtual layer 1704 that maps the window layer of the first application, so the virtual layer 1704 also includes the second application interface 1703. Fig.17 The window layer of the first application in the second display area 1702 shown in (a) is mapped to the virtual layer 1704. After the mapping is completed, the virtual layer 1704 correspondingly includes the second application interface 1703 of the first application.

[0209] Then, the virtual layer 1704 is cropped according to the width of the first display area 1701 to obtain a cropped virtual layer 1705, and the cropped virtual layer 1705 is blurred to obtain a virtual layer 1706. The virtual layer 1706 includes the cropped and blurred second application interface 1703, that is, the third application interface 1707. Fig.17 Finally, the blurred virtual layer 1706 is set to be displayed in the first display area. At this time, the first display area displays the third application interface 1707 corresponding to the second application interface 1703, as shown in FIG. Fig.17 As shown in (d).

[0210] By comparison Fig.17 (a) and Fig.17 As can be seen in (d), after being processed by the embodiment of the present application, the first display area can be prevented from being empty, and the blurred dynamic background image that is synchronized with the content displayed in the first display area follows the second display area can enhance the immersion of the user interface and improve the user experience.

[0211] In the embodiment of the present application, since an application is usually composed of multiple application interfaces, that is, one application includes multiple switchable application interfaces. In other words, the first application displayed on the first display screen may include multiple second application interfaces.

[0212] Therefore, at the layer level, the embodiment of the present application realizes that the second application interface of the first application is cropped and blurred to obtain the corresponding third application interface displayed in the first display area through the method of creating, mapping, cropping and blurring the virtual layer. Compared with the method at the interface level, each time the first application switches to display a second application interface, each time the second application interface is directly cropped and blurred to obtain the corresponding third application interface, this method only requires one operation to enable the first display area to dynamically switch with the interface switching of the second display area, thereby improving the display efficiency of the first display area, reducing operations and saving resources and power consumption.

[0213] In some embodiments, before the window management service WMS notifies the LetterBox module to set the top application window layer mapping, Fig.16 As shown, the window management service WMS may also first determine whether the first application is the target application. That is, the window management service WMS further determines whether the top application corresponding to the top application window is the target application.

[0214] If the first application is the target application, it means that the first application currently opened by the user is a pre-configured application that needs to display the first interface in the first display area, so the window management service WMS notifies the LetterBox module to set the top application window layer mapping. If the first application is not the target application, it means that the first application is not a pre-configured application that needs to display the first interface in the first display area. Fig.16 As shown, the process can be ended directly.

[0215] Fig.18 A schematic diagram of an interactive process of a display method for another foldable electronic device is shown.

[0216] It should be noted that Fig.18 This is the first operation in the second case, that is, the interaction flow under the user's screen switching operation.

[0217] The following, combined Fig.18 The display method of the foldable electronic device provided in the embodiment of the present application is described.

[0218] like Fig.18 As shown, after receiving the user's screen switching operation, the folding screen state management module determines whether a screen switch occurs. In the case of screen switching, the folding screen state management module notifies the display management service DMS to update the display information. After the display management service DMS receives the notification from the folding screen state management module to update the display information, it lights up the target display screen according to the display information.

[0219] In an embodiment of the present application, the display information includes the target display screen that needs to be lit for the current switch. For example, if the folding screen status management module determines that the user's screen switching operation is to switch from the first display screen to the second display screen, then the second display screen is the target display screen. Furthermore, the folding screen status management module notifies the display management service DMS to light up the second display screen, that is, the target display screen that the display management service DMS lights up according to the display information is the second display screen. And if the folding screen status management module determines that the user's screen switching operation is to switch from the second display screen to the first display screen, then the first display screen is the target display screen. Furthermore, the folding screen status management module notifies the display management service DMS to light up the first display screen, that is, the target display screen that the display management service DMS lights up according to the display information is the first display screen.

[0220] In some embodiments, the folding screen state management module can determine whether screen switching occurs by the folding angle of the second display screen (i.e., the folding screen). The folding angle of the second display screen (i.e., the folding screen) can be understood as the angle α between the above-mentioned screen A and screen B. Therefore, the embodiment of the present application can determine whether the electronic device is currently switching from a folding state to a non-folding state, or from a non-folding state to a folding state by the angle α between screen A and screen B. And then determine whether it is switching from the first display screen to the second display screen, or the second display screen to the first display screen.

[0221] It should be noted that the angle α is used to determine whether the electronic device is currently in a folded state or an unfolded state. For details, please refer to the above explanation of the angle α, and the embodiments of the present application will not elaborate on this.

[0222] For example, when the folding screen state management module determines that the electronic device switches from the folded state to the unfolded state according to the angle α, it can be determined that it switches from the first display screen (outer display screen) to the second display screen (inner display screen). When the folding screen state management module determines that the electronic device switches from the unfolded state to the folded state according to the angle α, it can be determined that it switches from the second display screen (inner display screen) to the first display screen (outer display screen).

[0223] Next, the display management service DMS lights up the target display screen according to the display information, displays the current application window on the target display screen, and informs the window management service WMS. It can be understood that the current application window refers to the application window of the first application currently displayed on the non-target display screen when receiving the user's screen switching operation.

[0224] For example, if the target display screen is the first display screen, then the non-target display screen is the second display screen. Then, the current application window is the application window of the first application currently displayed on the second display screen when the user's screen switching operation is received. If the target display screen is the second display screen, then the non-target display screen is the first display screen. Then, the current application window is the application window of the first application currently displayed on the first display screen when the user's screen switching operation is received.

[0225] After the window management service WMS receives the notification from the display management service DMS, since the embodiment of the present application is for a display method on a first display screen (a non-foldable external display screen), the window management service WMS further determines whether the target display screen is the first display screen. When the window management service WMS determines that the target display screen is the first display screen, the window management service WMS can notify the top application window layer mapping to be set by calling the LetterBox interface.

[0226] In some embodiments, if the target application is preconfigured, the window management service WMS can determine whether the first application corresponding to the currently displayed application window is the target application while determining whether the target display screen is the first display screen. Fig.18 As shown, the window management service WMS can determine whether the target display screen is the first display screen and whether the first application corresponding to the application window is the target application. When both conditions are met, that is, the target display screen is the first display screen and the first application corresponding to the current application window is the target application, the window management service WMS calls the LetterBox interface again to notify the LetterBox module to set the top application window layer mapping.

[0227] In the embodiment of the present application, Fig.18 The process of setting the top application window layer mapping in the LetterBox module is the same as above Fig.16 Therefore, the process of setting the top application window layer mapping for the LetterBox module in the embodiment of the present application can be specifically referred to the above Fig.16 The description of the process of setting the top application window layer mapping for the LetterBox module is not repeated in this embodiment of the application.

[0228] In some embodiments, the window management service WMS can determine whether the target display screen is the first display screen according to the display screen lit by the display management service DMS. Alternatively, the window management service WMS can also obtain the display information sent by the folding screen state management module from the display management service DMS to determine whether the target display screen is the first display screen. It can be understood that the manner in which the window management service WMS determines whether the target display screen is the first display screen is not limited in any way in the embodiments of the present application.

[0229] Another embodiment of the present application provides an electronic device, including: a first display screen, a second display screen, one or more processors and a memory. The first display screen, the second display screen and the memory are respectively coupled to the processor; the second display screen can be folded to form two screens, the first display screen is arranged on the back of one screen of the second display screen, the first display screen is not foldable, and an assembly deco area is arranged on the first display screen; one or more computer program codes are stored in the memory, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device implements the display method of the foldable electronic device described in any of the above embodiments.

[0230] Another embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor in an electronic device, the electronic device implements the display method of a foldable electronic device described in any of the above embodiments.

[0231] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step in the above method embodiment.

[0232] The present application also provides a chip system, such as Fig.19 As shown, the chip system 1900 includes at least one processor 1901 and at least one interface circuit 1902. The processor 1901 and the interface circuit 1902 can be interconnected through a line. For example, the interface circuit 1802 can be used to receive signals from other devices (such as a computer memory). For another example, the interface circuit 1902 can be used to send signals to other devices (such as the processor 1901).

[0233] Exemplarily, the interface circuit 1902 can read the instruction stored in the memory and send the instruction to the processor 1901. When the instruction is executed by the processor 1901, the computer can execute the various steps in the above embodiment. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.

[0234] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0235] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0236] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0237] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0238] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0239] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A display method for a foldable electronic device, characterized in that: The electronic device comprises a first display screen and a second display screen, the second display screen can be folded to form two screens, the first display screen is arranged on the back of one screen of the second display screen, the first display screen is not foldable, and an assembly deco area is arranged on the first display screen; The method comprises: Receiving a first operation, where the first operation triggers the electronic device to display a first application interface of a first application on the first display screen; In response to the first operation, a first interface is displayed in a first display area of ​​the first display screen, and a second interface is displayed in a second display area of ​​the first display screen; wherein, the first interface is obtained based on the second interface; the second interface includes a second application interface of the first application, and the second application interface is the same application interface as the first application interface; the first display area corresponds to the deco area, and is the remaining display area of ​​the first display screen after the second interface is displayed in the second display area in order to avoid the deco area.

2. The method according to claim 1, characterized in that The first interface is obtained by blurring the second application interface in the second interface.

3. The method according to claim 1 or 2, characterized in that: The first display area is smaller than the second display area; the first interface is obtained by cropping and blurring the second application interface in the second interface.

4. The method according to any one of claims 1 to 3, characterized in that The first operation includes an opening operation of the first application on the first display screen by a user and / or a screen switching operation of the user switching from the second display screen to the first display screen.

5. The method according to any one of claims 1 to 4, characterized in that The displaying the first interface in the first display area of ​​the first display screen includes: Creating a new virtual layer, mapping the window layer of the first application to the virtual layer, so that the mapped virtual layer includes the second application interface; wherein the window layer includes the second application interface; The mapped virtual layer is cropped and blurred according to the size of the first display area to obtain a third application interface and display it in the first display area; wherein the first interface includes the third application interface.

6. The method according to claim 5, characterized in that The creating of a new virtual layer includes: creating the new virtual layer after the first second application interface of the window layer of the first application is drawn.

7. The method according to any one of claims 1 to 6, characterized in that The second application interface is obtained by shrinking the first application interface.

8. The method according to any one of claims 1 to 7, characterized in that The first interface includes a status element, and the second interface does not include the status element; wherein the status element includes any one or more of time, notification capsule, signal grid, network icon, and volume icon.

9. The method according to any one of claims 1 to 8, characterized in that In response to the first operation, displaying a first interface in a first display area of ​​the first display screen and displaying a second interface in a second display area of ​​the first display screen includes: In response to the first operation, if the first application is a target application, a first interface is displayed in a first display area of ​​the first display screen, and a second interface is displayed in a second display area of ​​the first display screen.

10. The method according to claim 1, characterized in that The first interface is a solid color interface having the same background color as the second application interface in the second interface.

11. The method according to claim 1, characterized in that: The first interface is an interface with a gradient interface color, and the interface color is the same as the background color of the second application interface in the second interface.

12. An electronic device, characterized in that: include: A first display screen, a second display screen, one or more processors and a memory, wherein the first display screen, the second display screen and the memory are respectively coupled to the processor; The second display screen can be folded to form two screens, the first display screen is arranged on the back of one screen of the second display screen, the first display screen is not foldable, and a deco assembly area is arranged on the first display screen; One or more computer program codes are stored in the memory, and the computer program codes include computer instructions; when the processor executes the computer instructions, the electronic device executes the display method of a foldable electronic device as described in any one of claims 1-11.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor of an electronic device, the electronic device executes the display method of a foldable electronic device as described in any one of claims 1 to 11.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor of an electronic device, the electronic device executes the display method of a foldable electronic device as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Electronic device, display control method and relevant product

    CN108200245A

  • Method for displaying application through folding screen and electronic equipment

    CN110286972A

  • Electronic equipment with folding screen and control method thereof

    CN113888961A

  • Image display method and electronic equipment

    CN114257671A

  • Display method and electronic equipment

    CN114840280A