Method for displaying application window, and electronic device
By displaying a first window on the first display screen of a foldable device and switching to a second window in response to user input, the issues of smoothness and ease of operation during full-screen playback when the device's posture changes are resolved, thus improving the user experience.
Patent Information
- Application Number
- PCT/CN2025/093107
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-06
- Filing Date
- 2025-05-07
- Publication Date
- 2025-12-11
AI Technical Summary
In electronic devices equipped with foldable screens, existing technologies struggle to maintain smooth full-screen playback of application windows and ease of user operation when the device's posture changes, especially during folding or unfolding, when users need to frequently rotate the device to adjust the viewing direction.
The first application's first window is displayed on the first display screen of the electronic device, and a second window is displayed in a second area in response to user operation. The second window is larger than the first window and maintains full-screen playback when the user's posture changes. The user can achieve full-screen playback by clicking controls, gestures, or voice commands, ensuring that the window's orientation is consistent with the user's viewing direction and avoiding device rotation.
It achieves smooth full-screen playback and ease of user operation during changes in the posture of electronic devices, improving the user viewing experience, especially simplifying the operation steps for full-screen video playback on foldable screen devices.
Smart Images

Figure CN2025093107_11122025_PF_FP_ABST
Abstract
Description
Display method of application window and electronic device
[0001] The present application claims priority to the Chinese patent application No. 202410733927.X, filed on June 6, 2024, and entitled "A display method of application window and electronic device", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] The present application relates to the technical field of terminal, and in particular to a display method of application window and electronic device. BACKGROUND
[0003] With the gradual maturity of flexible display screen technology and its wide application in various electronic devices, electronic devices equipped with flexible display screens (referred to as folding screens in the present application) are increasingly accepted and used by the general public.
[0004] Since the electronic device equipped with the folding screen can be folded or unfolded, the electronic device can be in different postures, such as a folded state, a stand state, an unfolded state, etc. When the electronic device is in different postures, the size, shape, etc. of the displayed application window need to be matched with the posture of the electronic device to facilitate user viewing and improve user experience. SUMMARY
[0005] The embodiments of the present application provide a display method of application window and electronic device, which displays the application window matched with the posture of the electronic device when the electronic device is in different postures, thereby improving user viewing experience.
[0006] To achieve the above-mentioned purpose, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a display method of application window is provided, which comprises: a first display screen (outer screen) of an electronic device displays a first window of a first application on a first area on one side of an aperture; in one possible scenario, in response to the electronic device receiving a first operation of a user in a folded state or a stand state, a second area of the first display screen displays a second window of the first application; in another possible scenario, in response to the electronic device changing from a folded state to a stand state, the second area of the first display screen displays the second window of the first application; wherein the second area is larger than the first area and the second area includes the aperture; for example, the second area is the entire display area of the first display screen, i.e. the second window fills the display area of the first display screen.
[0008] In the method, when the electronic device is in the folded state, the first window of the first application is displayed in the first area (for example, the display area c) of the first display screen, the application window of the first application is complete and continuous, but the width of the application window is smaller than the width of the first display screen, and the application window is small. In response to the first operation of the user or the operation of unfolding the mobile phone, the second window of the first application is displayed in the entire display area of the first display screen, realizing full-screen playing. Moreover, the orientation of the second window is consistent with the orientation of the first window, for example, both are oriented to the transverse direction of the electronic device, which is consistent with the direction in which the user watches the electronic device, so that the user does not need to rotate the electronic device to watch the full-screen playing, and the operation steps of the user are simplified.
[0009] The first operation is a full-screen playing operation. The full-screen playing operation can be a click operation on the first control (for example, a full-screen control), a preset gesture (for example, a gesture of outwardly expanding two fingers), or a preset voice.
[0010] The user only needs to click the first control, make a preset gesture, or speak a preset voice, or unfold the electronic device, to realize full-screen display of the application window of the first application on the first display screen of the electronic device, so that the user operation is convenient and simple.
[0011] In combination with the first aspect, in a possible implementation manner, the first window includes a first video playing area, and the second window includes a second video playing area. The second video playing area is larger than the first video playing area, and the direction of the image in the second video playing area is consistent with the direction of the image in the first video playing area.
[0012] In the method, the user only needs to perform the first operation or the unfolding operation on the electronic device to conveniently realize full-screen playing of the video image on the first display screen. The user can perform a convenient and fast operation to switch the first display screen from playing the video image in a small range to full-screen playing of the video image, and the video image is played smoothly in the switching process.
[0013] In combination with the first aspect, in a possible implementation manner, the width of the second video playing area (the full-screen playing area) is the same as the width of the second window. The width of the full-screen playing area is the same as the width of the first display screen. In the case that the full-screen playing area avoids the camera hole, the full-screen playing area can maximize the display of the video image.
[0014] In combination with the first aspect, in a possible implementation manner, the second window includes a text area, and the text area does not overlap the second video playing area. The orientation of the text is consistent with the orientation of the video image, that is, the orientation of the text is consistent with the orientation of the window.
[0015] With reference to the first aspect, in a possible implementation manner, in response to the electronic device being unfolded to the unfolded state, the folding screen of the electronic device displays a third window of the first application in full screen, the third window includes a third video playing area, and the third video playing area includes the entire display area of the folding screen.
[0016] In the method, when the posture of the electronic device changes (for example, from the folded state to the unfolded state, or from the stand state to the unfolded state), the electronic device does not exit the full screen display state, and the full screen playing of the video image can be smoothly performed during the posture change of the electronic device, without the need for the user to additionally perform a full screen playing operation, thereby bringing a smooth viewing experience to the user.
[0017] The orientation of the third window is different from the orientation of the second window. For example, the orientation of the second window is the landscape of the electronic device, and the orientation of the third window is the portrait of the electronic device, so that the entire display area of the folding screen is used to play the video image, the video image occupies a larger area, and the display effect is better.
[0018] With reference to the first aspect, in a possible implementation manner, in response to the electronic device changing from the unfolded state to the folded state or the stand state, the second area of the first display screen displays the second window.
[0019] That is, during the folding of the electronic device by the user, the electronic device also does not exit the full screen display state, and the full screen playing of the video image can be smoothly performed.
[0020] With reference to the first aspect, in a possible implementation manner, the first display screen is arranged on the back of the folding screen.
[0021] With reference to the first aspect, in a possible implementation manner, in response to the electronic device changing from the stand state to the folded state, the first area of the first display screen displays the first window. In the method, the user only needs to fold the electronic device, and can conveniently realize the exiting of the full screen playing.
[0022] With reference to the first aspect, in a possible implementation manner, when the first area of the first display screen displays the first window, the third area of the first display screen displays a clock window and / or a weather window, and the third area is not overlapped with the first area; that is, the first window does not fill the entire display area of the first display screen. When the second area of the first display screen displays the second window, the clock window and / or the weather window are not displayed on the first display screen, and the second area includes the third area; that is, the second window fills the entire display area of the first display screen.
[0023] In a second aspect, an electronic device is provided, which has a function of implementing the method of the first aspect. The function can be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
[0024] In a third aspect, an electronic device is provided, which includes a processor, a memory, a folding screen and a first display screen. The first display screen is arranged opposite to the folding screen. The memory is configured to store computer-executable instructions. When the electronic device is running, the processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any possible implementation manner of the first aspect.
[0025] In a fourth aspect, a computer-readable storage medium is provided, which stores instructions. When the instructions are executed on a computer, the computer can perform the method according to any possible implementation manner of the first aspect.
[0026] In a fifth aspect, a computer program product is provided, which includes instructions. When the instructions are executed on a computer, the computer can perform the method according to any possible implementation manner of the first aspect.
[0027] The technical effects brought by any possible implementation manner of the second aspect to the fifth aspect can refer to the technical effects brought by different implementation manners of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0028] FIG. 1 is a schematic diagram of an electronic device provided with a folding screen according to an embodiment of the present application;
[0029] FIG. 2 is a schematic diagram of an electronic device provided with a folding screen according to an embodiment of the present application;
[0030] FIG. 3 is a schematic diagram of an electronic device provided with a folding screen according to an embodiment of the present application;
[0031] FIG. 4A is a schematic diagram of a posture of an electronic device provided with a folding screen according to an embodiment of the present application;
[0032] FIG. 4B is a schematic diagram of an interface of an electronic device provided with a folding screen according to an embodiment of the present application;
[0033] FIG. 4C is a schematic diagram of an interface of an electronic device provided with a folding screen according to an embodiment of the present application;
[0034] FIG. 4D is a schematic diagram of an interface of an electronic device provided with a folding screen according to an embodiment of the present application;
[0035] FIG. 4E is a schematic diagram of an interface of an electronic device with a folding screen according to an embodiment of the present application;
[0036] FIG. 5A is a schematic diagram of an electronic device with a folding screen according to an embodiment of the present application;
[0037] FIG. 5B is a schematic diagram of a display area division manner in a display method of an application window according to an embodiment of the present application;
[0038] FIG. 6 is a schematic diagram of a scenario example applicable to a display method of an application window according to an embodiment of the present application;
[0039] FIG. 7 is a schematic diagram of a scenario example of a display method of an application window;
[0040] FIG. 8 is a schematic diagram of a scenario example of a display method of an application window according to an embodiment of the present application;
[0041] FIG. 9 is a schematic diagram of a display area division manner in a display method of an application window according to an embodiment of the present application;
[0042] FIG. 10 is a schematic diagram of a scenario example of a display method of an application window according to an embodiment of the present application;
[0043] FIG. 11 is a schematic diagram of a scenario example of a display method of an application window according to an embodiment of the present application;
[0044] FIG. 12 is a schematic diagram of a scenario example of a display method of an application window according to an embodiment of the present application;
[0045] FIG. 13 is a schematic diagram of a flow of a display method of an application window according to an embodiment of the present application;
[0046] FIG. 14 is a schematic diagram of a scenario example of a display method of an application window according to an embodiment of the present application;
[0047] FIG. 15 is a schematic diagram of a flow of a display method of an application window according to an embodiment of the present application;
[0048] FIG. 16 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
[0049] FIG. 17 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0050] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing the specific embodiments and are not intended to be limiting of the present application. As used in the specification and the appended claims of the present application, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and / or “comprising,” when used in the following embodiments of the present application, specify the presence of stated features, integers, steps, operations, objects, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, objects, and / or components thereof. The term “and / or” used in the context of the following embodiments of the present application refers to a conjunctive relationship and / or a disjunctive relationship. For example, A and / or B can mean: A alone, A and B together, B alone.
[0051] Reference in the specification to “one embodiment” or “some embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase “in one embodiment” or “in some embodiments” in various places in the specification are not necessarily all referring to the same embodiment, although it can. The terms “comprise,” “comprising,” “include,” “including,” and “has” or “having” (and its inflection) used in the specification, including the claims, denote “including but not limited to,” unless otherwise indicated. The terms “connected” and “coupled” are used broadly and encompass both direct and indirect connections and couplings.
[0052] In the embodiments of the present application, the words “exemplary” and “for example” are used to mean serving as an example, instance, or illustration. Any implementation described as “exemplary” or “for example” is not necessarily to be construed as preferred or advantageous over other implementations. Rather, use of the terms “exemplary” and “for example” is intended to present concepts in a concrete manner.
[0053] The embodiments of the present application provide a display method of an application window, which can be applied to an electronic device configured with a folding screen. In the folding process of the above electronic device, the folding screen is also folded synchronously. In the embodiments of the present application, the electronic device configured with the folding screen can also be referred to as a foldable device.
[0054] Exemplarily, the electronic device can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) \ virtual reality (VR) device, or the like. Embodiments of the present application do not specially limit the specific form of the electronic device.
[0055] In some embodiments, the electronic device can be an electronic device that is folded inward along one or more transverse axes (folding lines).
[0056] In an example, as shown in FIG. 1, the electronic device 101 includes a folding screen 102; the electronic device 101 is folded inward along a folding line 11, and the folding screen 102 is also folded inward along the folding line 11. The folding screen 102 is divided into two display areas along the folding line 11, such as A screen and B screen. It can be understood that the A screen and the B screen can be multiple screens that exist independently; or can be a complete screen in an integrated structure, which is only divided into at least two parts along the folding line. Embodiments of the present application do not specially limit this. After the electronic device 101 is folded inward, the A screen and the B screen are opposite to each other.
[0057] In another example, as shown in FIG. 2, the electronic device 201 includes a folding screen 202; the electronic device 201 is folded inward along a folding line 21 and a folding line 22, and the folding screen 202 is also folded inward along the folding line 21 and the folding line 22. The folding screen 202 is divided into three display areas along the folding line 21 and the folding line 22, such as C screen, D screen and E screen. After the electronic device 201 is folded inward, the C screen is opposite to the D screen, and the E screen is also opposite to the D screen.
[0058] In the above FIG. 1 and FIG. 2, the folding screen of the electronic device is folded along a transverse folding line. Of course, the folding screen of the electronic device can also be folded along a longitudinal folding line. In an example, the longitudinal folding line is perpendicular to the transverse folding line.
[0059] In an example, as shown in FIG. 3, the electronic device 301 includes a folding screen 302; the electronic device 301 is folded inward along a folding line 31, and the folding screen 302 is also folded inward along the folding line 31. The folding screen 302 is divided into two display areas along the folding line 31, such as F screen and G screen. After the electronic device 301 is folded inward, the F screen and the G screen are opposite to each other.
[0060] In some embodiments, the electronic device with the folding screen is also provided with a display screen on the back of the folding screen, which is called an outer screen. Correspondingly, the folding screen can also be called an inner screen.
[0061] For example, as shown in FIG. 1, the outer screen 103 can be disposed on the back of the A screen or the B screen. It can be understood that FIG. 1 is only an example in which the outer screen 103 is disposed on the back of the A screen, and does not limit the electronic device provided by the embodiments of the present application.
[0062] For another example, as shown in FIG. 2, the outer screen 203 can be disposed on the back of the C screen, and the outer screen 204 can be disposed on the back of the E screen. In other possible embodiments, the outer screen can also be disposed on the back of the D screen.
[0063] For another example, as shown in FIG. 3, the outer screen 303 can be disposed on the back of the F screen or the G screen. It can be understood that FIG. 3 is only an example in which the outer screen 303 is disposed on the back of the F screen, and does not limit the electronic device provided by the embodiments of the present application.
[0064] The electronic device with the folding screen can be in different postures, for example, the postures of the electronic device with the folding screen can include an unfolded state, a stand state and a folded state.
[0065] Taking the electronic device 101 as an example, as shown in FIG. 4A, the folding screen 102 includes the A screen and the B screen. During the use of the electronic device 101, the user can change the posture of the electronic device 101 by changing the included angle between the A screen and the B screen. For example, the unfolded state of the electronic device 101 refers to the state when the included angle between the A screen and the B screen of the electronic device 101 is greater than or equal to a preset first value, where the first value can be 175°, 178°, 180° or other values. In response to the folding operation of the user, the included angle between the A screen and the B screen of the electronic device 101 gradually decreases. When the included angle between the A screen and the B screen is less than the preset first value and greater than a preset second value, the electronic device 101 is in a stand state, where the second value can be 2°, 5° or other values. As the included angle between the A screen and the B screen of the electronic device 101 continues to decrease, the electronic device 101 is in a folded state, and the included angle between the A screen and the B screen is less than or equal to the preset second value.
[0066] When the electronic device 101 is in the folded state, in response to the unfolding operation of the user, the included angle between the A screen and the B screen of the electronic device 101 gradually increases. When the included angle between the A screen and the B screen is greater than the second value and less than the first value, the electronic device 101 is in a stand state. As the included angle between the A screen and the B screen of the electronic device 101 continues to increase, the electronic device 101 is in an unfolded state, and the included angle between the A screen and the B screen is greater than or equal to the first value.
[0067] It can be understood that the posture of the electronic device 101 can be converted between the unfolded state, the stand state and the unfolded state under the operation of the user.
[0068] In the embodiments of this application, the lateral direction is along the short side direction of the electronic device 101 in the unfolded state, and the longitudinal direction is along the long side direction of the electronic device 101 in the unfolded state.
[0069] The folding screen and the outer screen of the electronic device can both be used to display the user interface of the electronic device. For example, the user interface can include a lock screen interface, a desktop interface, an application interface, and the like. In some embodiments, as the posture of the electronic device changes, the folding screen or the outer screen of the electronic device displays the user interface.
[0070] In some examples, when the electronic device is in the unfolded state, the folding screen of the electronic device displays the user interface. For example, as shown in FIG. 4B, the electronic device 101 is in the unfolded state, and the folding screen 102 of the electronic device 101 displays the lock screen interface.
[0071] In other examples, when the electronic device is in the folded state, the outer screen of the electronic device displays the user interface. For example, as shown in FIG. 4C, the electronic device 101 is in the folded state, and the outer screen 103 of the electronic device 101 displays the lock screen interface.
[0072] In other examples, when the electronic device is in the stand state, the outer screen of the electronic device displays the user interface. For example, as shown in FIG. 4D, the electronic device 101 is in the stand state, and the electronic device 101 is in the V shape and can stand on the plane like the inverted V shape, and the outer screen 103 of the electronic device 101 displays the lock screen interface. For example, as shown in FIG. 4E, the electronic device 101 is in the stand state, and the electronic device 101 is in the L shape and stands on the plane with the shell where the B screen of the folding screen 102, and the outer screen 103 of the electronic device 101 displays the lock screen interface.
[0073] In some embodiments, when the included angle between the screens of the folding screen is greater than or equal to a preset first value, the folding screen of the electronic device displays the user interface of the electronic device. When the included angle between the screens of the folding screen is less than the preset first value, the outer screen of the electronic device displays the user interface of the electronic device.
[0074] In an implementation, the outer screen of the electronic device is configured on the surface where the rear camera is located, and the outer screen is a special-shaped display screen to avoid the rear camera.
[0075] In an example, as shown in FIG. 5A, the outer screen 401 of the electronic device is configured on the surface where the rear camera 4021 and the rear camera 4022 are located. The outer screen 401 includes at least one hole, and the hole can accommodate a camera module or a flash module, etc. For example, as shown in FIG. 5A, the outer screen 401 includes a camera hole 4031 and a camera hole 4032, so that the rear camera 4021 and the rear camera 4022 can be embedded in the outer screen. In the embodiments of this application, the hole included in the outer screen is taken as an example of the camera hole.
[0076] In the following examples, the electronic device with a folding screen is exemplarily illustrated as a mobile phone.
[0077] Generally, as the mobile phone outer screen includes a camera hole, the user interface displayed on the outer screen will avoid the camera hole, so that the user interface is more complete and coherent.
[0078] In an example, the display area of the mobile phone outer screen includes at least three parts. Exemplarily, referring to FIG. 5B, the display area of the outer screen of the mobile phone 10 includes a display area a, a display area b, and a display area c. In an example, a system window can be displayed in the display area a; for example, the display area a includes a notification message, for example, the display area a is displayed as a system background color, etc. A system control can be displayed in the display area b; for example, the display area b includes a time control, a weather control, etc. An application window can be displayed in the display area c; for example, the display area c includes an application window of a desktop application, an application window of a video application, an application window of a game application, an application window of a music playing application, etc.
[0079] The display area c does not include a camera hole, and the application interface of the application window displayed by the mobile phone outer screen is complete and coherent, and is not interrupted by the camera hole.
[0080] Exemplarily, as shown in (a) of FIG. 6, the display area a of the mobile phone 10 is displayed as a system background color. The time control and the weather control 601 are displayed in the display area b. The application window of the desktop application is displayed in the display area c, and the desktop interface 602 is displayed in the application window of the desktop application. The desktop interface 602 can include application icons of multiple applications, including but not limited to “clock”, “calendar”, “gallery”, “file management”, “email”, “music”, “notes”, “calculator”, “video”, etc.
[0081] Exemplarily, in response to the user's click operation on the application icon “video”, the video application is started. As shown in (b) of FIG. 6, the application window 1 of the video application is displayed in the display area c, and the application interface 603 is displayed in the application window 1 of the video application. Correspondingly, the time control 604 is displayed in the display area b. The display area a is displayed as a system background color.
[0082] In the application window of the desktop application shown in (a) of FIG. 6, the desktop interface 602 is completely displayed and is not interrupted or blocked by the camera hole. In the application window 1 of the video application shown in (b) of FIG. 6, the application interface 603 is completely displayed and is not interrupted or blocked by the camera hole. The application interface is complete and coherent.
[0083] In an example, as shown in (a) of FIG. 7, the application interface 603 includes a video playing area 6031 for playing a video image. The application interface 603 further includes a "full screen" control 6032. In response to a click operation of the "full screen" control 6032 by the user, the application interface 605 is displayed in the application window 1 of the video application. As shown in (b) of FIG. 7, the application window 1 of the video application is displayed in the display area c of the outer screen of the mobile phone 10, and the application window 1 of the video application displays the application interface 605. The application interface 605 is an interface for full screen playing of the video image, and the video image fills the application window of the video application.
[0084] As shown in (b) of FIG. 7, the width (the length along the lateral direction of the mobile phone 10) of the application window 1 of the video application is shorter than the height (the length along the longitudinal direction of the mobile phone 10). When the video image is played in full screen, the normal direction of the video image in the application interface 605 is the longitudinal direction of the mobile phone 10. That is, compared with (a) of FIG. 7, the orientation of the application window 1 of the video application is changed.
[0085] When the mobile phone 10 is placed in the lateral direction (as shown in the direction of (b) of FIG. 7), the viewing direction (lateral direction) of the user is perpendicular to the normal direction (longitudinal direction) of the video image, and the user holds the mobile phone 10 to view the mobile phone in the direction along the plane of the paper.
[0086] In this case, the user needs to rotate the mobile phone 10 by 90 degrees to make the viewing direction consistent with the normal direction of the video image (the orientation of the application window 1 of the video application). For example, as shown in (c) of FIG. 7, after the mobile phone 10 is rotated by 90 degrees, the viewing direction of the user is consistent with the normal direction of the video image.
[0087] In this way, the user needs to rotate the mobile phone every time the user needs to watch the video in full screen, and the use experience is cumbersome.
[0088] The embodiments of the present application provide a display method of an application window, which simplifies the operation steps of playing a video image in full screen on the outer screen of a mobile phone and improves the use experience of the user in full screen playing of an electronic device with a folding screen.
[0089] It should be noted that the embodiments of the present application are described by taking a video application as an example, and the display method of the application window provided by the embodiments of the present application is also applicable to a short video application, a game application, a music playing application, etc.
[0090] In some embodiments, when the phone is in the folded state or the stand state, in response to a user's click operation on an application icon of a video application, the outer screen of the phone displays an application window of the video application. In an example, as shown in (b) of FIG. 6, in response to a user's click operation on the application icon "video", an application window 1 of the video application is displayed in the display area c of the outer screen, so that the application window 1 of the video application avoids the camera hole, and the application interface is displayed completely on the outer screen, that is, the position of the camera hole does not affect the complete display of the application interface. For example, the application window 1 of the video application displays an application interface 603.
[0091] In an example, as shown in (a) of FIG. 8, the application interface 603 can include a video playing area 6031. It can be understood that the display area c is a part of the display area of the outer screen. For example, the display area c can be located on one side of the camera hole of the outer screen, for example, the right side (the user faces the direction of the phone). In order to avoid the camera hole, the width of the application window 1 of the video application is smaller than the width of the outer screen, the width (the length of the phone 10 in the transverse direction) of the video playing area 6031 is smaller than or equal to the width of the display area c, the width of the video playing area 6031 is smaller than the width of the outer screen, and the area of the video playing area 6031 is small. The normal direction of the image, text, etc. in the application interface 603 is the transverse direction of the phone 10, that is, the orientation of the application window 1 of the video application is the transverse direction of the phone 10. Assuming that the user holds the phone 10 to view the phone along the direction of the paper surface, the user's viewing direction is consistent with the orientation of the application window 1 of the video application.
[0092] For example, the application interface 603 includes a "full screen" control 6032. The user can click the "full screen" control 6032 to make the phone 10 play the video image in full screen in the application window of the video application. As shown in (b) of FIG. 8, in response to a user's click operation on the "full screen" control 6032, an application window 2 of the video application is displayed on the entire display area of the outer screen, that is, the application window 2 of the video application occupies the entire display area of the outer screen, and the display area of the application window 2 of the video application includes the display area a, the display area b and the display area c in FIG. 5B.
[0093] In an implementation, referring to FIG. 9, the entire display area of the outer screen is divided into the display area a, the display area d and the display area e.
[0094] With reference to FIG. 9, as shown in (b) of FIG. 8, the application window 2 of the video application displays a full screen interface 606, which fills the entire display area of the outer screen. In an example, the full screen interface 606 includes a full screen playing area 6061, which is used to play a video image in full screen. In an implementation, the full screen playing area 6061 coincides with the display area d, i.e., the width of the display area d is the same as the width of the mobile phone 10, and the width of the full screen playing area 6061 is the same as the width of the mobile phone 10. When the mobile phone 10 is placed horizontally, the full screen playing area 6061 is not affected by the camera hole and maximally displays the video image. In an example, the full screen interface 606 can further include other information, such as information related to the video content played in the full screen playing area 6061, e.g., a media title, a brief introduction option, a selection option, etc. For example, the information can be displayed in the display area e. In addition, the display area a can display a system background color, i.e., the display color of the display area a is consistent with the background color displayed in the display areas d and e, and the three areas are visually integrated as a whole rather than independent parts. The positive direction of the image, text, etc. displayed in the full screen interface 606 is the horizontal direction of the mobile phone 10, i.e., the orientation of the application window 2 of the video application is the horizontal direction of the mobile phone 10. When the user holds the mobile phone 10 to view the mobile phone along the direction of the paper, the user viewing direction is consistent with the orientation of the application window 2 of the video application. That is, the orientation of the application window 2 of the video application is consistent with the orientation of the application window 1 of the video application.
[0095] In this example, in response to the user's full screen playing operation (e.g., a click operation on the "full screen" control 6032), the application window of the video application is enlarged to fill the entire display area of the outer screen, and the video image is played in full screen in the application window 2 of the video application (e.g., the full screen playing area 6061), and the positive direction of the video image in the full screen playing area 6061 is consistent with the horizontal direction of the mobile phone 10. Before and after playing the video image in full screen, the orientation of the application interface of the video application is consistent, and the user does not need to rotate the mobile phone to make the user viewing direction consistent with the positive direction of the video image, thereby simplifying the user operation steps for full screen playing.
[0096] It should be noted that the above example takes the click operation on the "full screen" control 6032 as an example of the user's full screen playing operation, and in other embodiments, the full screen playing operation can include other forms, e.g., a double-finger outward expansion operation on the video playing area, and the present application does not limit the operation form of the full screen playing operation.
[0097] It should be noted that the above division of the display area of the outer screen is an example, and in actual products, other division manners of the display area of the outer screen can be used according to the position of the camera hole.
[0098] For example, as shown in Fig. 10(a), the mobile phone 10 is in a state that the mobile phone 10 shown in Fig. 8 is rotated by 90 degrees counterclockwise, and at this time, the camera hole on the outer screen is located at the lower right corner. Before full screen playing, the application window of the video application is displayed in the display area on the left side of the camera hole (the direction that the user faces the mobile phone) on the outer screen, that is, the application interface 603 is displayed in the display area on the left side of the camera hole on the outer screen. In this case, the width of the application window of the video application is less than the width of the outer screen, the width of the video playing area 6031 is less than the width of the outer screen, and the area of the video playing area 6031 is small and not suitable for the user to watch. As shown in Fig. 10(b), in response to the click operation of the user on the "full screen" control 6032, the application window of the video application is displayed in the full display area of the outer screen, and the full screen interface 606 is displayed in the application window of the video application, the full screen interface 606 includes the full screen playing area 6061. The full screen playing area 6061 maximally displays the video image without being affected by the position of the camera hole. In this example, the orientation of the application window of the video application after being enlarged is consistent with the orientation of the application window of the video application before being enlarged.
[0099] For another example, as shown in Fig. 11(a), the mobile phone 20 has a camera hole in a different position, and when the mobile phone 20 is placed horizontally, the camera hole of the mobile phone 20 is located at the upper right corner of the outer screen. Before full screen playing, the application window of the video application is displayed in the display area on the left side of the camera hole on the outer screen, and the application interface 701 is displayed in the application window of the video application. The application interface 701 includes the video playing area 7011, which is used to play the video image. The width of the video playing area 7011 is less than the width of the outer screen, and the area of the video playing area 7011 is small. The application interface 701 includes the "full screen" control 7012. As shown in Fig. 11(b), in response to the click operation of the user on the "full screen" control 7012, the application window of the video application is displayed in the full display area of the outer screen, and the full screen playing area 702 is included in the application window of the video application. The full screen playing area 702 maximally displays the video image without avoiding the camera hole. In this example, the orientation of the application interface of the video application is consistent before and after the application window of the video application is enlarged.
[0100] Of course, the display area of the outer screen can also be divided in other manners according to actual conditions, which will not be listed one by one in the embodiments of the present application.
[0101] In some embodiments, when the phone is in the folded state or the stand state, the phone displays the application window of the video application on the outer screen in the full display area, and plays the video image in the application window of the video application in full screen. In response to the unfolding operation of the user, the phone becomes the unfolded state, and the application window of the video application is switched to be displayed on the full display area of the folding screen (i.e. the inner screen), and the video image is played in full screen in the application window of the video application.
[0102] For example, as shown in (a) of FIG. 12, the phone 10 is in the folded state, and the outer screen is in the full screen video playing state. That is, the application window 2 of the video application fills the full display area of the outer screen of the phone 10, and the full screen interface 606 is displayed in the application window 2 of the video application, the full screen interface 606 includes a full screen playing area 6061 for playing the video image in full screen. The width of the full screen playing area 6061 is the same as the width of the phone 10.
[0103] In the state of (a) of FIG. 12, in response to the unfolding operation of the user on the phone 10, the phone 10 is unfolded from the folded state to the unfolded state. The unfolded state of the phone 10 is shown in (b) of FIG. 12, the folding screen of the phone 10 is turned on, the content displayed on the outer screen is switched to be displayed on the folding screen, and the full display area of the folding screen displays the application window 3 of the video application. The application window 3 of the video application displays the application interface 607, which includes a full screen playing area for playing the video image in full screen. The full screen playing area in the application interface 607 is consistent with the display area of the application window 3 of the video application, that is, the full screen playing area is the full display area of the folding screen; the video image fills the application window 3 of the video application, that is, the video image fills the full display area of the folding screen, and the inner screen is also in the full screen video playing state. When the video image is played in full screen, the positive direction of the video image in the application interface 607 is the portrait direction of the phone 10; the height of the full screen playing area in the application interface 607 is the same as the height of the folding screen of the electronic device, at this time, the orientation of the application window 3 of the video application is the portrait direction of the phone 10, the full display area of the folding screen is used to play the video image, the video image occupies a larger area, and the display effect is better.
[0104] It should be noted that the full display area in the embodiments of the present application can be almost full, that is, when a certain proportion (such as 95%) of the display area is occupied, it means that the display area is full.
[0105] In an example, the process from (a) of FIG. 12 to (b) of FIG. 12 can also be implemented in reverse. When the mobile phone 10 is in the unfolded state as shown in (b) of FIG. 12, the entire display area of the folding screen of the mobile phone 10 displays the application window 3 of the video application. In response to the folding operation of the mobile phone 10 by the user, the mobile phone 10 is folded from the unfolded state in (b) of FIG. 12 to the folded state as shown in (a) of FIG. 12, and the application window 2 of the video application displayed in the folding screen of the mobile phone 10 is switched to be displayed in the entire display area of the outer screen of the mobile phone 10, and the full-screen interface 606 is displayed in the application window 2 of the video application, and the full-screen interface 606 includes a full-screen playing area 6061. That is, the full-screen display state of the mobile phone 10 can remain unchanged during the switching process between the folded state and the unfolded state.
[0106] In this example, when the mobile phone is in the folded state or the stand state, the entire display area of the outer screen of the mobile phone displays the application window of the video application, the width of the full-screen playing area in the application window is consistent with the width of the mobile phone, and the area of the full-screen playing area is large; and the positive direction of the video image is horizontal, and when the mobile phone is placed horizontally, the viewing direction of the user is consistent with the direction of the video image; and the user has a good viewing experience. When the mobile phone is in the unfolded state, the entire display area of the folding screen of the mobile phone displays the application window of the video application, the height (length along the longitudinal direction of the mobile phone) of the full-screen playing area in the application window is consistent with the height (length along the longitudinal direction of the mobile phone) of the mobile phone, and the area of the full-screen playing area is the largest, and the user has a good viewing experience. When the posture of the mobile phone changes, the mobile phone does not exit the full-screen display state, and the full-screen playing of the video image can be smoothly performed during the change of the posture of the mobile phone, without the need for the user to perform an additional full-screen playing operation, thereby providing the user with a smooth viewing experience.
[0107] It should be noted that, for the purpose of convenient description, the dashed lines in FIGS. 5B-12 are used to indicate the virtual area range. In actual products, the entire user interface is an integral whole, and there is no real area division.
[0108] FIG. 13 shows a flowchart of a display method of an application window provided by an embodiment of the present application. As shown in FIG. 13, the method comprises:
[0109] S1301, the first display area of the outer screen of the electronic device displays an application window 1 of a first application, and the width of the first display area is less than the width of the outer screen.
[0110] The electronic device is a foldable electronic device having an inner foldable display screen (inner screen) and an outer display screen (outer screen). When the electronic device is in a folded state or a stand state, the outer screen of the electronic device displays a user interface. In an example, a first display area of the outer screen of the electronic device displays an application window one of a first application. The first display area is a part of the display area of the outer screen, and the width of the first display area is less than the width of the outer screen, for example, as shown in FIG. 5B, the first area is the display area c. In this way, the user interface can avoid the camera hole and is not affected by the position of the camera hole, so that the user interface is more complete and coherent, and the user experience is better.
[0111] The first application may, for example, be a video application, a game application, a music playing application, etc.
[0112] For example, as shown in FIG. 8(a), the display area c of the outer screen of the mobile phone 10 displays an application window 1 of a video application.
[0113] In an example, the application window one of the first application includes a video playing area. The width of the video playing area is less than the width of the outer screen, and the area of the video playing area is small. For example, as shown in FIG. 8(a), the application window 1 of the video application displays an application interface 603, and the application interface 603 includes a video playing area 6031. The width of the video playing area 6031 is less than or equal to the width of the display area c, and the width of the video playing area 6031 is less than the width of the outer screen.
[0114] S1302, in response to the full-screen playing operation of the user, the second display area of the outer screen of the electronic device displays an application window two of the first application, and the width of the second display area is the same as the width of the outer screen of the electronic device. The application window two of the first application includes a full-screen playing area one, and the width of the full-screen playing area one is the same as the width of the outer screen of the electronic device. The positive direction of playing images in the full-screen playing area one is consistent with the horizontal direction of the electronic device.
[0115] In an example, the full-screen playing operation can include a click operation of the user on the full-screen control, for example, as shown in FIG. 8(a), the application interface 603 includes a “full-screen” control 6032, and the click operation of the user on the “full-screen” control 6032 is received, that is, the full-screen playing operation is received.
[0116] In an example, the full-screen playing operation can include a gesture action of the user, for example, a gesture action of the user of double-finger outward expansion in the video playing area.
[0117] In an example, the full-screen playing operation can be inputting a preset voice, for example, the user speaks a voice “full-screen playing” to the mobile phone, etc.
[0118] In response to the full-screen playing operation of the user, the second display area of the outer screen of the electronic device displays the application window two of the first application.
[0119] In an example, the second display area is the entire display area of the outer screen; that is, the width of the second display area is the same as the width of the outer screen of the electronic device, and the height of the second display area is the same as the height of the outer screen of the electronic device. For example, as shown in (b) of FIG. 8, the entire display area of the outer screen of the mobile phone 10 displays the application window 2 of the video application. The application window two of the video application includes a full-screen playing area, which is consistent with the display area d in FIG. 9. The width of the full-screen playing area is the same as the width of the outer screen of the electronic device, and the full-screen playing area can maximize the display of the video image while avoiding the camera hole. The positive direction of the image played in the full-screen playing area is consistent with the horizontal direction of the electronic device, and the user does not need to rotate the electronic device, thereby simplifying the user operation steps of full-screen playing.
[0120] Optionally, in another example, the width of the second display area is the same as the width of the outer screen of the electronic device, and the height of the second display area is less than the height of the outer screen of the electronic device. In an example, the second display area is the display area d in FIG. 9. That is, the second display area is the same as the full-screen playing area, and the entire display area in the application window two of the first application is used to play the video image.
[0121] S1303, in response to the unfolding operation of the user on the electronic device, the entire display area of the folding screen of the electronic device displays the application window three of the first application, and the entire display area in the application window three of the first application is a second full-screen playing area.
[0122] Optionally, the user can unfold the electronic device so that the included angle between the A screen and the B screen of the folding screen of the electronic device becomes larger. When the electronic device is in the folded state or the support state, the electronic device is unfolded to the unfolded state in response to the unfolding operation of the user on the electronic device. For example, as shown in FIG. 1, the included angle between the A screen and the B screen of the folding screen 102 of the electronic device 101 is greater than or equal to a first value, and the electronic device 101 is in the unfolded state.
[0123] When the electronic device is in the unfolded state, the folding screen of the electronic device displays the application window three of the first application. In an example, the entire display area of the folding screen of the electronic device displays the application window three of the first application. The application window three of the first application includes a second full-screen playing area, which is consistent with the entire display area of the folding screen; that is, the height of the second full-screen playing area is the same as the height of the folding screen of the electronic device, and the width of the second full-screen playing area is the same as the width of the folding screen of the electronic device; the entire display area on the folding screen is used to play the video image, the video image occupies a larger area, and the display effect is better.
[0124] Exemplarily, as shown in (b) of FIG. 12, when the mobile phone 10 is unfolded into the unfolded state, the entire display area of the folding screen of the mobile phone 10 displays the application window 3 of the video application, and the application window 3 of the video application displays the application interface 607, which includes a full-screen playing area consistent with the entire display area of the folding screen.
[0125] In an example, the positive direction of the video image in the application window three of the first application is the portrait direction of the electronic device.
[0126] S1304, in response to the folding operation of the user on the electronic device, the second display area of the outer screen of the electronic device displays the application window two of the first application.
[0127] Optionally, the user can fold the electronic device so that the included angle between the A screen and the B screen of the folding screen of the electronic device becomes smaller.
[0128] In an example, when the electronic device is in the unfolded state, in response to the folding operation of the user on the electronic device, the electronic device is folded into the stand state. For example, as shown in FIG. 1, the included angle between the A screen and the B screen of the folding screen 102 of the electronic device 101 is smaller than the first value and larger than the second value, and the electronic device 101 is in the stand state.
[0129] When the electronic device is in the stand state, the second display area of the outer screen of the electronic device displays the application window two of the first application.
[0130] In an example, when the electronic device is in the unfolded state or the stand state, in response to the folding operation of the user on the electronic device, the electronic device is folded into the folded state. For example, as shown in FIG. 1, the included angle between the A screen and the B screen of the folding screen 102 of the electronic device 101 is smaller than or equal to the second value, and the electronic device 101 is in the folded state.
[0131] When the electronic device is in the folded state, the second display area of the outer screen of the electronic device displays the application window two of the first application. Exemplarily, as shown in (a) of FIG. 12, the mobile phone 10 is in the folded state, the application window 2 of the video application is displayed in the entire display area of the outer screen of the mobile phone 10, and the full-screen interface 606 is displayed in the application window 2 of the video application, and the full-screen interface 606 includes the full-screen playing area 6061.
[0132] Exemplarily, as shown in (a) of FIG. 14, the mobile phone 10 is in the folded state, the application window 1 of the video application is displayed in the display area c of the outer screen of the mobile phone 10, and the application interface 603 is displayed in the application window 1 of the video application, and the application interface 603 includes the video playing area 6031.
[0133] In response to the user's unfolding operation on the mobile phone 10, the mobile phone 10 is unfolded into the stand state as shown in (b) of FIG. 14, and the application window 2 of the video application is displayed on the entire display area of the outer screen of the mobile phone 10. The application window 2 of the video application displays a full-screen interface 606, and the full-screen interface 606 includes a full-screen playing area 6061. The full-screen playing area 6061 is consistent with the display area d, and the width of the display area d is the same as the width of the mobile phone 10, that is, the width of the full-screen playing area 6061 is the same as the width of the mobile phone 10.
[0134] In this example, when the mobile phone is in the folded state, the application window of the video application is displayed on the display area c of the outer screen, the application window of the video application is complete and coherent, but the width of the video playing area is smaller than the width of the mobile phone, and the area of the video playing area is small. In response to the user's unfolding operation on the mobile phone, the mobile phone is unfolded into the stand state, and the application window of the video application is displayed on the entire display area of the outer screen. The width of the full-screen playing area is consistent with the width of the mobile phone, and full-screen video image is played. Moreover, the normal direction of the video image played in the full-screen playing area is consistent with the horizontal direction of the mobile phone, that is, the user's viewing direction is consistent with the direction of the played video image, and the user does not need to rotate the mobile phone to view the full-screen played video image. The user only needs to unfold the mobile phone to realize full-screen playing of the video image on the mobile phone, and the operation steps of the user are simplified.
[0135] Further, when the mobile phone is in the stand state, in response to the user's unfolding operation on the mobile phone, the mobile phone is unfolded into the unfolded state, and the application window of the video application is displayed on the entire display area of the folding screen of the mobile phone, and the full-screen video image is played in the application window of the video application. For specific examples, reference can be made to FIG. 12. The difference between this example and the example shown in FIG. 12 is that, in the example shown in FIG. 12, when the mobile phone is in the folded state, in response to the user's unfolding operation on the mobile phone, the mobile phone is unfolded into the unfolded state; in this example, when the mobile phone is in the stand state, in response to the user's unfolding operation on the mobile phone, the mobile phone is unfolded into the unfolded state.
[0136] When the mobile phone is in the stand state, in response to the user's folding operation on the mobile phone, the mobile phone is folded into the folded state. For example, as shown in (a) of FIG. 14, in response to the user's folding operation on the mobile phone, the application window 1 of the video application is displayed on the display area c of the outer screen of the mobile phone 10.
[0137] It should be noted that the dashed lines in FIG. 14 are used to indicate the range of the area, and are not displayed in the user interface of the actual product.
[0138] FIG. 15 shows a flowchart of a method for displaying an application window according to an embodiment of the present application. As shown in FIG. 15, the method includes the following steps.
[0139] S1501, the electronic device is in a folded state, a first display area of an outer screen of the electronic device displays an application window one of a first application, and a width of the first display area is less than a width of the outer screen.
[0140] For example, as shown in FIG. 1, an angle between the A screen and the B screen of the folding screen 102 of the electronic device 101 is less than or equal to a second value, and the electronic device 101 is in a folded state.
[0141] The first display area is a part of a display area of the outer screen, and the width of the first display area is less than the width of the outer screen. For example, as shown in FIG. 5B, the first area is the display area c. In this way, the user interface can avoid the camera hole, so that the user interface is more complete and coherent.
[0142] The first application can be a video application, a game application, a music playing application, and the like.
[0143] For example, as shown in FIG. 14(a), the display area c of the outer screen of the mobile phone 10 displays the application window 1 of the video application.
[0144] In an example, the application window one of the first application includes a video playing area. The width of the video playing area is less than the width of the outer screen, and the area of the video playing area is small. For example, as shown in FIG. 14(a), the application window 1 of the video application displays an application interface 603, and the application interface 603 includes a video playing area 6031. The width of the video playing area 6031 is less than or equal to the width of the display area c, and the width of the video playing area 6031 is less than the width of the outer screen.
[0145] S1502, in response to a user's unfolding operation on the electronic device, the electronic device is unfolded into a stand state, a second display area of an outer screen of the electronic device displays an application window two of a first application, and a width of the second display area is the same as a width of the outer screen of the electronic device. The application window two of the first application includes a full-screen playing area one, a width of the full-screen playing area one is the same as the width of the outer screen of the electronic device, and a positive direction of playing an image in the full-screen playing area one is consistent with a horizontal direction of the electronic device.
[0146] When the electronic device is in a folded state, the user can unfold the electronic device, so that the angle between the A screen and the B screen of the electronic device becomes larger. For example, in response to a user's unfolding operation on the electronic device, the electronic device is unfolded into a stand state. For example, as shown in FIG. 1, an angle between the A screen and the B screen of the folding screen 102 of the electronic device 101 is greater than the second value and less than a first value, and the electronic device 101 is in a stand state.
[0147] In response to the user's unfolding operation, a second display area of an outer screen of the electronic device displays an application window two of a first application.
[0148] In an example, the second display region is the entire display region of the outer screen; that is, the width of the second display region is the same as the width of the outer screen of the electronic device, and the height of the second display region is the same as the height of the outer screen of the electronic device. For example, as shown in (b) of FIG. 14, the entire display region of the outer screen of the mobile phone 10 displays the application window 2 of the video application. The application window 2 of the video application includes a full-screen playing region, and the full-screen playing region is consistent with the display region d in FIG. 9. The width of the full-screen playing region is the same as the width of the outer screen of the electronic device, and the full-screen playing region can display the video image to the maximum extent without the camera hole. The positive direction of the image played in the full-screen playing region is consistent with the horizontal direction of the electronic device, and the user does not need to rotate the electronic device, thereby simplifying the user operation steps of the full-screen playing.
[0149] Optionally, in another example, the width of the second display region is the same as the width of the outer screen of the electronic device, and the height of the second display region is less than the height of the outer screen of the electronic device. In an example, the second display region is the display region d in FIG. 9. That is, the second display region is the same as the full-screen playing region, and the entire display region in the application window 2 of the first application is used to play the video image.
[0150] S1503, in response to the folding operation of the user on the electronic device, the electronic device is folded into a folded state, and the first display region of the outer screen of the electronic device displays the application window 1 of the first application.
[0151] Optionally, when the electronic device is in the stand state, the user can fold the electronic device, so that the included angle between the A screen and the B screen of the electronic device becomes smaller. In an example, in response to the folding operation of the user on the electronic device, the electronic device is folded into a folded state, and the first display region of the outer screen of the electronic device displays the application window 1 of the first application, that is, the full-screen playing of the video image is exited.
[0152] For example, when the electronic device is in the stand state, in response to the folding operation of the user on the electronic device, the electronic device is folded into a folded state, as shown in (a) of FIG. 14, in response to the folding operation of the user on the mobile phone, the application window 1 of the video application is displayed in the display region c of the outer screen of the mobile phone 10.
[0153] The display method of the application window provided by the embodiments of the present application can be applied to the electronic device with a folding screen.
[0154] For example, FIG. 16 shows a structural schematic diagram of the above-mentioned electronic device.
[0155] The electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a camera 191, a display screen 192, and the like. The sensor module 180 can include a pressure sensor, a touch sensor, a gyroscope sensor, an acceleration sensor, and the like.
[0156] It can be understood that the structure illustrated in the embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0157] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), and the like. Different processing units can be independent devices, or can be integrated in one or more processors.
[0158] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0159] The memory in the processor 110 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.
[0160] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments with wired charging, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some embodiments with wireless charging, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 can supply power to the electronic device through the power management module 141 while charging the battery 142.
[0161] The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 192, the camera 191, and the wireless communication module 160.
[0162] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
[0163] The electronic device 100 can implement a display function through the GPU, the display screen 192, and the application processor.
[0164] The display screen 192 is configured to display images, videos, and the like. The display screen 192 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 (AMOLED), a flex light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light emitting diode (QLED), or the like.
[0165] In some embodiments, the electronic device 100 can include multiple display screens, such as a folding screen and an outer screen.
[0166] The electronic device 100 can implement a photographing function through an ISP, a camera 191, a video codec, a GPU, a display 192, and an application processor, etc.
[0167] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, audio, video, and other files are saved in the external memory card.
[0168] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various function applications and data processing of the electronic device by running the instructions stored in the internal memory 121. For example, in the embodiments of the present application, the processor 110 can execute the instructions stored in the internal memory 121, and the internal memory 121 can include a storage program area and a storage data area. The storage program area can store an operating system and at least one application program required by a function. The storage data area can store data created during use of the electronic device, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0169] The pressure sensor is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be disposed on the display 192. There are many types of pressure sensors, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, etc. The capacitive pressure sensor can include at least two parallel plates with conductive material. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display 192, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor.
[0170] The touch sensor, also referred to as a "touch panel". The touch sensor can be disposed on the display screen 192, and the touch sensor and the display screen 192 form a touch screen, also referred to as a "touch screen". The touch sensor is configured to detect a touch operation applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operation to the application processor to determine a touch event type. Visual output related to the touch operation can be provided through the display screen 192. In an example, it can be determined through the touch event that a user's touch operation (e.g., a click operation, a double-click operation, etc.) on the folding screen or the outer screen is received, and it can also be determined through the touch event that a user's gesture (e.g., a double-finger outward expansion, etc.) on the folding screen or the outer screen is received.
[0171] The gyroscope sensor can be configured to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined through the gyroscope sensor.
[0172] The acceleration sensor can be configured to detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected.
[0173] In an example, the orientation of the electronic device 100 can be obtained through the gyroscope sensor and the acceleration sensor, for example, to determine whether the electronic device 100 is placed horizontally or vertically.
[0174] In an example, a plurality of sets of sensors can be provided on the electronic device 100. For example, a sensor module can be provided on each of the A screen and the B screen of the folding screen of the electronic device. In an example, the gyroscope sensor 1 and the acceleration sensor 1 can be provided on the A screen, and the gyroscope sensor 2 and the acceleration sensor 2 can be provided on the B screen. The motion speed and direction of the A screen can be obtained by reading the output data of the gyroscope sensor 1 and the acceleration sensor 1, and the motion speed and direction of the B screen can be obtained by reading the output data of the gyroscope sensor 2 and the acceleration sensor 2, so that it can be determined whether the electronic device 100 is unfolded or folded. By reading the output data of the gyroscope sensor 1, the acceleration sensor 1, the gyroscope sensor 2, and the acceleration sensor 2, the electronic device 100 can obtain parameters such as the included angle between the A screen and the B screen, so as to determine the posture of the electronic device 100, for example, the unfolded state, the stand state, or the folded state.
[0175] The keys 190 include a power key, a volume key, and the like. The keys 190 can be mechanical keys. Alternatively, the keys 190 can be touch keys.
[0176] In the embodiments of the present application, the electronic device described above is an electronic device that can run an operating system and install an application program. Alternatively, the operating system running on the electronic device can be Android, Android, System, etc.
[0177] In some embodiments, the software system of the electronic device 100 can employ a layered architecture, an event-driven architecture, a microkernel architecture, or a cloud architecture. Embodiments of the present application employ a layered architecture. The software structure of the electronic device 100 is described exemplarily with respect to a system.
[0178] FIG. 17 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application.
[0179] It can be understood that the layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software architecture of the electronic device 100 can include an application (application, App) layer, a framework (framework, FWK) layer, a hardware abstraction layer (hardware abstraction layer, HAL), and a kernel layer. The software architecture of the electronic device 100 is described exemplarily with respect to a system.
[0180] The application layer can include a series of application packages. The application package can include a desktop application, a video application, a game application, a music playing application, etc. In some embodiments, the application package can also include a gallery, a calendar, a call, music, a short message, etc.
[0181] The framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for the applications of the application layer. The framework layer includes some pre-defined functions. The framework layer provides programming services to the application layer through the API interface, so that the application can interact with the hardware and the operating system. Exemplarily, the framework layer includes an application framework, a resource management service, a window management service (window manager service, WMS), a system user interface (system user interface, System UI) module, an input management service, a posture management module, a surface synthesis module, etc.
[0182] The application framework can include an Activity management system, a View system, a resource management service, and the like. The Activity management system is configured to manage Activities, and is responsible for starting, switching, scheduling, and the like of Activities. The View system includes visual controls, such as a control for displaying text, a control for displaying pictures, and the like. The View system can be used to build an application. A display interface can be composed of one or more views. For example, a video application includes a full-screen playing interface, which can include a view for displaying text and a view for displaying pictures, and the like.
[0183] The resource management service provides various resources for an application, such as localized strings, icons, pictures, layout files, video files, and the like.
[0184] The WMS is configured to manage windows of an application. The WMS can obtain a size of a display screen (such as a folding screen or an external screen), determine whether there is a status bar, lock a screen, and the like; and can manage information of windows of each application, such as interface layer information of a window of an application.
[0185] The system UI module is configured to manage windows of system applications, such as a clock window and a notification message window. The input management service is configured to manage input events, such as distributing input events. The posture management module is configured to manage a posture of an electronic device with a folding screen, such as determining a posture of the electronic device according to an event reported by a sensor.
[0186] The SurfaceFlinger is a graphics compositor in the system, and is responsible for compositing multiple graphics layers and displaying them on a display screen; the SurfaceFlinger coordinates and manages a graphics rendering and display process.
[0187] The hardware abstraction layer (HAL) is configured to abstract hardware, encapsulate drivers of a kernel layer, and provide an interface upward. For example, as shown in FIG. 17, the hardware abstraction layer includes a sensor HAL and a hardware compositor (HWC). The sensor HAL is configured to provide hardware encapsulation of a sensor. The HWC is a hardware compositor in an Android system, and is configured to composite graphics layers into a displayable frame; the HWC cooperates with the SurfaceFlinger to implement hardware accelerated rendering and composition of graphics.
[0188] The kernel layer provides underlying drivers for various hardware of an electronic device. For example, the kernel layer can include a sensor driver and a display driver.
[0189] The following describes an implementation of the display method of the application window in detail in combination with the software architecture shown in FIG. 17.
[0190] For example, as shown in (a) of FIG. 8 or (a) of FIG. 14, the mobile phone is in the folded state, and the outer screen of the mobile phone displays the application window 1 of the video application, and the application interface 603 is displayed in the application window 1 of the video application, and the application interface 603 includes the video playing area 6031. The width of the application window 1 of the video application is less than the width of the outer screen, the width of the video playing area 6031 is less than the width of the outer screen, and the area of the video playing area 6031 is small. That is, the application window 1 of the video application is not displayed in full screen.
[0191] In an example, the user performs a full screen playing operation, for example, a click operation on the "full screen" control 6032. The sensor (for example, a touch sensor or a touch panel) detects the click operation of the user on the screen (the outer screen), and the sensor driver generates a click event according to the click operation and sends the click event to the sensor HAL, and the sensor HAL reports the click event to the input management service. Optionally, the click event includes the action position of the click operation, the action intensity of the click operation, etc. The input management service sends the click event to the video application. The video application determines that the full screen playing operation of the user is received according to the click event.
[0192] In another example, the user unfolds the electronic device, so that the electronic device is in the stand state. The sensor driver determines the posture of the electronic device according to the data reported by the sensor (for example, an acceleration sensor, a gyroscope sensor, a gravity sensor, etc.) and periodically reports the posture of the electronic device to the posture management module. The posture management module determines that the electronic device changes from the folded state to the stand state, and sends a notification message to the video application, which includes the current posture of the electronic device. The video application determines that the electronic device changes from the folded state to the stand state according to the notification message.
[0193] After determining that the full screen playing operation of the user is received, or determining that the electronic device changes from the folded state to the stand state, the video application calls the interface provided by the application framework to notify the application framework to perform full screen display. The application framework notifies the WMS to perform full screen display. The WMS obtains the size of the outer screen, determines the window size of the video application after full screen display according to the size of the outer screen. The WMS determines the window scaling factor according to the window size of the video application before full screen display and the window size of the video application after full screen display. The WMS sends the window scaling factor to the application framework. In an implementation, the WMS also obtains the data (size, background color, etc.) of the display area a according to the configuration data, and sends the data of the display area a to the application framework. Optionally, the WMS also notifies the system UI to stop displaying the time window, the weather window, etc. in the display area b. Optionally, the WMS also generates and manages the dynamic effect in the window size change process of the video application.
[0194] The application framework sends the window scaling factor and the data of the display area a to the video application. The video application re-arranges the Activity in the application window according to the window scaling factor. When the next synchronization signal arrives, the surface composition module generates each layer of the application interface according to the re-arranged Activity, and the HWC renders and composes each layer into a displayable frame (the application interface of the video application).
[0195] The display driver displays the application interface of the video application in the application window of the video application. The application window of the video application is displayed full screen on the outer screen, and the application interface of the video application (including the video playing area) is displayed full screen. For example, as shown in (b) of FIG. 8 or (b) of FIG. 14, the application window 2 of the video application is displayed in the entire display area of the outer screen, that is, the application window 2 of the video application occupies the entire display area of the outer screen, and as shown in FIG. 9, the entire display area of the outer screen is divided into the display area a, the display area d and the display area e. The full screen interface 606 is displayed in the application window 2 of the video application, and the full screen interface 606 includes the full screen playing area 6061, and the width of the full screen playing area 6061 is the same as the width of the mobile phone 10.
[0196] The display method of the application window provided in the embodiments of the present application can make the application window full screen display only by performing a full screen playing operation or unfolding the electronic device, the positive direction of the image in the application window is consistent with the horizontal direction of the electronic device, that is, the user viewing direction is consistent with the direction of the image, and the user does not need to rotate the electronic device to watch the full screen image. The operation steps of the user are simplified, and the user can watch the full screen conveniently. Moreover, after the electronic device is unfolded from the folded state or the support state to the unfolded state, or after the electronic device is folded from the unfolded state to the folded state or the support state, the electronic device continues to display the application window full screen, and the user can have a continuous full screen watching experience.
[0197] It can be understood that, in order to implement the above functions, the electronic device provided in the embodiments of the present application comprises corresponding hardware structures and / or software modules for executing various functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed in the present application, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present application.
[0198] The embodiments of the present application can divide the functional modules of the electronic device according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware or software functional module. It should be noted that the division of the modules in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division manner can be used.
[0199] The embodiments of the present application also provide a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. For example, the interface circuit can be used to receive signals from other devices (such as the memory of the electronic device). For another example, the interface circuit can be used to send signals to other devices (such as the processor). For example, the interface circuit can read the instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can perform each step in the above embodiments. Of course, the chip system can also include other discrete devices, and the embodiments of the present application do not make specific limitations thereto.
[0200] The embodiments of the present application also provide a computer readable storage medium, which includes computer instructions. When the computer instructions are run on the above electronic device, the electronic device can perform each function or step performed by the electronic device in the above method embodiments.
[0201] The embodiments of the present application also provide a computer program product, which can make the computer perform each function or step performed by the electronic device in the above method embodiments when the computer program product is run on the computer.
[0202] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of the functional modules is exemplified. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions.
[0203] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of the modules or units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.
[0204] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or a plurality of physical units, that is, can be located in one place, or can be distributed to a plurality of different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0205] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0206] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the parts that make contributions to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage program codes.
[0207] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A display method of an application window, characterized by, The method is applied to an electronic device, the electronic device is a foldable device, the electronic device comprises a first display screen and a folding screen, the first display screen comprises at least one hole, and the method comprises: A first area of the first display screen displays a first window of a first application; wherein the first area is located on one side of the hole; In response to the electronic device receiving a first operation of a user in a folded state, or in response to the electronic device changing from a folded state to a stand state, a second area of the first display screen displays a second window of the first application; wherein the second area is larger than the first area and comprises the hole, and an orientation of the second window is consistent with an orientation of the first window.
2. The method of claim 1, wherein, The first operation comprises: A click operation on a first control, a preset gesture, or a preset voice.
3. The method according to claim 1 or 2, characterized in that, The first window comprises a first video playing area, the second window comprises a second video playing area, the second video playing area is larger than the first video playing area, and an image in the second video playing area is consistent in direction with an image in the first video playing area.
4. The method of claim 3, wherein, The width of the second video playing area is the same as the width of the second window.
5. The method of claim 4, wherein, The second window comprises a text area, and the text area does not overlap the second video playing area.
6. The method according to any one of claims 1 to 5, characterized in that, The second area comprises all display areas of the first display screen.
7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: In response to the electronic device being unfolded into an unfolded state, the folding screen displays a third window of the first application in full screen, and the third window comprises a third video playing area, and the third video playing area comprises all display areas of the folding screen.
8. The method of claim 7, wherein, The orientation of the third window is different from the orientation of the second window.
9. The method according to claim 7 or 8, characterized in that, The method further comprises: In response to the electronic device changing from the unfolded state to the folded state or the stand state, the second area of the first display screen displays the second window.
10. The method according to any one of claims 7-9, characterized in that, The first display screen is arranged on the back of the folding screen.
11. The method according to any one of claims 1 to 10, characterized in that, The method further comprises: In response to the electronic device changing from the stand state to the folded state, the first area of the first display screen displays the first window.
12. The method of any one of claims 1-11, wherein: when the first area of the first display screen displays the first window, a third area of the first display screen displays a clock window and / or a weather window, and the third area does not overlap the first area; and when the second area of the first display screen displays the second window, the clock window and / or the weather window are not displayed on the first display screen, and the second area comprises the third area.
13. An electronic device, comprising: The electronic device comprises: one or more processors; a memory; a folding screen and a first display screen; wherein the first display screen is arranged opposite to the folding screen, the memory stores one or more computer programs, and the one or more computer programs comprise instructions which, when executed by the processor, cause the electronic device to perform the method of any one of claims 1-12.
14. A computer readable storage medium having stored thereon computer programs / instructions, characterized in that, The computer program / instructions, when executed by the processor, implement the method of any one of claims 1-12.
15. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instructions, when executed by the processor, implement the method of any one of claims 1-12.
Citation Information
Patent Citations
Display method applied to electronic equipment with folding screen and electronic equipment
CN111124561A
Full-screen display method and device and electronic equipment
CN113535284A
Window interaction method and electronic equipment
CN116456019A
Application interface display method, electronic equipment and storage medium
CN117590982A
Full-screen display method, electronic device and computer-readable storage medium
WO2024082989A1