Display control method for electronic device and related device thereof
By logically dividing and adjusting the display screen of foldable electronic devices in real time, the problem of incompatibility of displayed content with changes has been solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-04-29
- Publication Date
- 2026-05-07
AI Technical Summary
The incompatibility of the displayed content between the folded and unfolded states of foldable electronic devices results in poor visual effects and negatively impacts the user experience.
By logically dividing the display screen of an electronic device into three areas, the processor adjusts the angle and size of these areas in real time to adapt to the user's folding or unfolding operations and dynamically adjust the displayed content.
It improves the visual effect of the display and provides a better user experience by adjusting the size and content of the display area to adapt to changes in the status of electronic devices.
Smart Images

Figure CN2025091978_07052026_PF_FP_ABST
Abstract
Description
A display control method for an electronic device and related equipment thereof
[0001] This application claims priority to Chinese Patent Application No. 202411549850.7, filed with the State Intellectual Property Office of China on October 31, 2024, entitled "A Display Control Method for an Electronic Device and Related Equipment Thereof", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of electronic technology, and in particular to a display control method for an electronic device and related equipment. Background Technology
[0003] As users' demands for portable devices continue to increase, electronic devices with more diverse forms and functions are being continuously developed and applied. Based on this, foldable electronic devices have emerged, including foldable phones, foldable personal computers (PCs), and so on.
[0004] In related technologies, the display screen of a foldable electronic device can be logically divided into two areas. When the foldable electronic device is in the folded state, one area of the display screen can be suspended above the horizontal plane, while the other area is parallel to the horizontal plane. These two areas can jointly display a desktop for the user, and each area displays certain desktop elements. When the foldable electronic device is in the unfolded state, both areas are parallel to the horizontal plane, and at this time, each area still displays its respective desktop elements.
[0005] In the above process, regardless of whether the foldable electronic device is in a folded or unfolded state, the content displayed on the two areas of the screen remains consistent in both states and does not change with the change of the electronic device's state. As a result, the screen cannot adaptively present a good visual effect to the user, leading to a poor user experience. Summary of the Invention
[0006] This application provides a display control method for an electronic device and related equipment, which can present users with better visual effects and improve user experience.
[0007] A first aspect of this application provides a display control method for an electronic device. The display screen of the electronic device may include a first region, a second region, and a third region, with the third region located between the first region and the second region. The first region and the second region can be folded or unfolded through the third region. The method includes:
[0008] When a user folds or unfolds an electronic device, the folding or unfolding operation (i.e., the target operation) causes the angle between the first and second areas of the electronic device's display screen to change. Therefore, the processor of the electronic device can detect the angle formed between the first and second areas in real time.
[0009] After determining the angle between the first and second regions, the processor can adjust the dimensions of the first, second, and third regions based on this angle, thereby obtaining the adjusted first, second, and third regions respectively. It should be noted that the size of this angle typically has a certain mathematical relationship with the adjusted dimensions of the first, second, and third regions, respectively.
[0010] After obtaining the adjusted first region, the adjusted second region, and the adjusted third region, the processor can adjust the content displayed in the adjusted first region and the content displayed in the adjusted second region based on the size of the adjusted third region, so that the adjusted first region displays its adjusted content and the adjusted second region displays its adjusted content.
[0011] As can be seen from the above method, since the first, second, and third regions are three areas obtained by logically dividing the entire display screen of the electronic device, the size of these three regions is adjustable. Thus, when the user folds or unfolds the first and second regions, the processor of the electronic device can collect the angle between the first and second regions and adjust the size of the first, second, and third regions based on this angle. Then, it adaptively adjusts the content displayed in the first and second regions after the adjustment, so that the adjusted first and second regions display the adjusted content, thereby improving the content displayed on the entire display screen for the user, presenting a better visual effect, and improving the user experience.
[0012] In one possible implementation, the included angle is negatively correlated with the size of the adjusted third region, positively correlated with the size of the adjusted first region, and positively correlated with the size of the adjusted second region. In the aforementioned implementation, the included angle is negatively correlated with the size of the adjusted third region. Since the size of the display screen is fixed and the display screen consists of the first, second, and third regions, the included angle is positively correlated with the size of the adjusted first region and positively correlated with the size of the adjusted second region. Therefore, once the size of the included angle is determined, the sizes of the adjusted first, second, and third regions can be determined accordingly.
[0013] In one possible implementation, the first region includes a first sub-region closer to the third region and a second sub-region farther from the third region. The first sub-region displays multiple first objects, including applications. Adjusting the content displayed in the adjusted first region based on the size of the adjusted third region includes: obtaining the difference between the size of the adjusted third region and the size of the third region; adjusting the size of the second sub-region within the adjusted first region based on the difference to maintain the size of the first sub-region unchanged, resulting in both the adjusted first and second sub-regions. The positions of the multiple first objects within the first sub-region are the same as their positions within the adjusted first sub-region. In the aforementioned implementation, the first region may include a first sub-region closer to the third region and a second sub-region farther from the third region. The first sub-region may display multiple first objects, which may include various applications, etc. After obtaining the adjusted third region and the adjusted first region, in order to maintain the size of the first sub-region unchanged, after obtaining the adjusted third region, the difference between the size of the adjusted third region and the original size of the third region can be obtained first. Then, in the adjusted first region, the size of the second sub-region can be adjusted based on this difference to keep the size of the first sub-region unchanged. This way, the adjusted first sub-region and the adjusted second sub-region can be obtained. Furthermore, the processor also needs to control the positions of multiple first objects in the first sub-region and ensure that the positions of multiple first objects in the adjusted first sub-region are the same. In this way, from a visual perspective, the size of the adjusted second sub-region has changed compared to the original size. Although the size of the adjusted first sub-region remains unchanged compared to the original size, its position on the display screen has also changed. The processor can cause the positions of multiple first objects on the display screen to change accordingly. As a result, the positions of multiple first objects change along with the adjusted first sub-region, ensuring that the content displayed by the adjusted first sub-region is basically consistent with the content displayed by the original first sub-region, thus providing users with a better visual experience.
[0014] In one possible implementation, the size of the third region may include parameters such as the height or area of the third region.
[0015] In one possible implementation, a first region displays multiple first objects. Adjusting the content displayed in the adjusted first region based on the size of the adjusted third region includes: adjusting the size of the multiple first objects and at least one of the distances between the multiple first objects based on an included angle within the adjusted first region, resulting in the adjusted multiple first objects. In the aforementioned implementation, in the original first region, since the first sub-region is closer to the third region and the second sub-region is farther from the third region, when adjusting the size of the third region, the processor can typically prioritize adaptively adjusting the size of the first sub-region, and usually will not change the size of the second sub-region. This allows the adjusted third region and the adjusted first region to be obtained sequentially. Since the size of the second sub-region remains unchanged, while the size of the adjusted first sub-region changes compared to the original size, to adapt to this change, the processor can adjust the size of the multiple first objects and at least one of the distances between the multiple first objects based on the included angle, thereby causing the adjusted first sub-region to display the adjusted multiple first objects. In this way, the parameters of the adjusted first objects change along with the size of the adjusted first sub-region, so that the content displayed by the adjusted first sub-region is basically similar to the content displayed by the original first sub-region, providing users with a better visual experience.
[0016] In one possible implementation, the adjusted dimensions of the plurality of first objects are positively correlated with the included angle, and the distance between the plurality of first objects is positively correlated with the included angle.
[0017] In one possible implementation, the first area also displays a third object, including the taskbar. The method further includes: removing the third object from the adjusted first area if the included angle is greater than or equal to a preset first threshold; and displaying the third object in the adjusted second area. In the aforementioned implementation, the first area may also display a third object, including the taskbar, etc. After re-dividing the display screen into the adjusted first area, the adjusted second area, and the adjusted third area based on the included angle, if the included angle is greater than or equal to the preset first threshold, the processor can remove the third object from the adjusted first area and display the third object in the adjusted second area. In this way, the processor can successfully move the third object from the adjusted first area to the adjusted second area, so that the entire display screen of the electronic device presents a more holistic view of the content to the user.
[0018] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object. The fourth object includes windows generated by user-triggered applications or taskbars. The method further includes: if the center of the fourth object is located in the first area, displaying the fourth object in the adjusted first area; if the center of the fourth object is located in the second area, displaying the fourth object in the adjusted second area. In the aforementioned implementation, the first and second areas may also jointly display the fourth object, which includes windows generated by user-triggered applications or taskbars, etc. After re-dividing the display screen into the adjusted first, second, and third areas, if the center of the fourth object is located in the original first area, the processor can display the fourth object in the adjusted first area; if the center of the fourth object is located in the original second area, the processor can display the fourth object in the adjusted second area. In this way, the processor can successfully determine the area to which the fourth object belongs and display the fourth object in that area, resulting in a more harmonious presentation of content across the entire electronic device's display screen.
[0019] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object. The fourth object includes windows generated by user-triggered applications or taskbars. The method further includes: if the size of a portion of the fourth object is greater than or equal to the size of the other portion, displaying the fourth object in the adjusted first area; if the size of a portion of the fourth object is smaller than the size of the other portion, displaying the fourth object in the adjusted second area. In the aforementioned implementation, the first and second areas may also jointly display the fourth object, which includes windows generated by user-triggered applications or taskbars, etc. After re-dividing the display screen into the adjusted first, second, and third areas, if the size of the portion of the fourth object displayed in the first area is greater than or equal to the size of the other portion displayed in the second area, the processor can display the fourth object in the adjusted first area; if the size of this portion is smaller than the other portion, the processor can display the fourth object in the adjusted second area. In this way, the processor can successfully determine the area to which the fourth object belongs and display it in that area, resulting in a more harmonious presentation of content across the entire electronic device's display screen.
[0020] In one possible implementation, the method further includes: if the size of the fourth object is greater than or equal to the size of the adjusted first region, reducing the size of the fourth object to obtain a reduced fourth object; displaying the fourth object in the first region includes: displaying the reduced fourth object in the first region. In the aforementioned implementation, if the processor displays the fourth object separately in the adjusted first region, the processor can also detect whether the size of the fourth object is greater than or equal to the size of the adjusted first region. If the size of the fourth object is greater than or equal to the size of the adjusted first region, the processor reduces the size of the fourth object to a certain extent, so that the size of the adjusted fourth object is smaller than the size of the adjusted first region, thus allowing the adjusted first region to display the reduced fourth object.
[0021] In one possible implementation, the method further includes: receiving a drag operation from a user on the display screen, the drag being used to move one of a plurality of first objects; in response to the drag operation, detecting whether the first object has moved from an adjusted first area to an adjusted third area; if the first object has moved from the adjusted first area to the adjusted third area, displaying the first object in the adjusted second area. In the aforementioned implementation, when a user needs to move a particular first object among a plurality of first objects, the user can perform a drag operation on that first object. In response to the drag operation, the processor can determine whether the first object has moved from the adjusted first area to the adjusted third area; if so, the processor can directly display the first object in the adjusted second area.
[0022] A second aspect of this application provides a display control method for an electronic device. The display screen of the electronic device includes a first area, a second area, and a third area, with the third area located between the first and second areas. The first and second areas can be folded or unfolded through the third area. The first area displays a plurality of first objects, and the second area displays a plurality of second objects. The method includes: receiving a user's rotation operation on the electronic device, the rotation operation being used to control the electronic device to rotate a target angle; responding to the rotation operation, detecting whether the target angle is greater than or equal to the preset second threshold; if the target angle is greater than or equal to the second threshold, adjusting the order of the plurality of first objects in the first area to control the first area to display the adjusted plurality of first objects, and adjusting the order of the plurality of second objects in the second area to control the second area to display the adjusted plurality of second objects.
[0023] In one possible implementation, the method further includes: creating multiple desktop pages in a first region; setting the adjusted multiple first objects in the multiple desktop pages; and controlling the first region to display one of the multiple desktop pages.
[0024] In one possible implementation, the method further includes: in a first region, reducing the size of the adjusted plurality of first objects to obtain a reduced plurality of first objects.
[0025] In one possible implementation, the first or second area also displays a third object, including the taskbar. The method further includes controlling the first area to display a portion of the third object and controlling the second area to display another portion of the third object.
[0026] In one possible implementation, a first region displays a portion of a fourth object, and a second region displays another portion of the fourth object, the fourth object including a window generated by the user triggering an application or taskbar. The method further includes: displaying the fourth object in the first region if the center of the fourth object is located in the first region; and displaying the fourth object in the second region if the center of the fourth object is located in the second region.
[0027] In one possible implementation, a first region displays a portion of a fourth object, and a second region displays another portion of the fourth object, the fourth object including a window generated by the user triggering an application or taskbar. The method further includes: displaying the fourth object in the first region if the size of a portion of the fourth object is greater than or equal to the size of the other portion of the fourth object; and displaying the fourth object in the second region if the size of a portion of the fourth object is smaller than the size of the other portion of the fourth object.
[0028] In one possible implementation, the method further includes: if the size of the fourth object is greater than or equal to the size of the adjusted first region, reducing the size of the fourth object to obtain a reduced fourth object; displaying the fourth object in the first region includes: displaying the reduced fourth object in the first region.
[0029] In one possible implementation, a fifth object is displayed on the side of the first region away from the third region, and a sixth object is displayed on the side of the second region away from the third region. The fifth and sixth objects contain a status bar. The method also includes: controlling the first region to display a portion of the fifth object and a portion of the sixth object, and controlling the second region to display another portion of the fifth object and another portion of the sixth object.
[0030] In one possible implementation, the method further includes: receiving a user's drag operation on the display screen, the drag being used to move one of a plurality of first objects; in response to the drag operation, detecting whether the first object has moved from a first region to a third region; if the first object has moved from the first region to the third region, displaying the first object in a second region.
[0031] A third aspect of this application provides a display control device disposed in an electronic device. The display screen of the electronic device includes a first area, a second area, and a third area, with the third area located between the first and second areas. The first and second areas can be folded or unfolded through the third area. The device includes: an acquisition module for receiving a user's target operation on the display screen, the target operation being used to change the angle between the first and second areas; a first adjustment module for adjusting the size of the first area, the second area, and the third area based on the target operation, to obtain an adjusted first area, an adjusted second area, and an adjusted third area; and a second adjustment module for adjusting the content displayed in the adjusted first area and the adjusted second area based on the size of the adjusted third area, so that the adjusted first area displays the adjusted content, and the adjusted second area displays the adjusted content.
[0032] In one possible implementation, the included angle is negatively correlated with the size of the adjusted third region, positively correlated with the size of the adjusted first region, and positively correlated with the size of the adjusted second region.
[0033] In one possible implementation, the first region includes a first sub-region close to the third region and a second sub-region far from the third region. The first sub-region displays multiple first objects, including an application. A second adjustment module is configured to: obtain the difference between the size of the adjusted third region and the size of the third region; and adjust the size of the second sub-region in the adjusted first region based on the difference to keep the size of the first sub-region unchanged, thereby obtaining the adjusted first sub-region and the adjusted second sub-region, wherein the positions of the multiple first objects in the first sub-region and the positions of the multiple first objects in the adjusted first sub-region are the same.
[0034] In one possible implementation, the size of the third region includes the height or area of the third region.
[0035] In one possible implementation, a first region displays a plurality of first objects, and a second adjustment module is used to adjust, in the adjusted first region, at least one of the dimensions of the plurality of first objects and the distance between the plurality of first objects based on the included angle, to obtain the adjusted plurality of first objects.
[0036] In one possible implementation, the adjusted dimensions of the plurality of first objects are positively correlated with the included angle, and the distance between the plurality of first objects is positively correlated with the included angle.
[0037] In one possible implementation, the first area also displays a third object, including the taskbar, and the device further includes: a first migration module for: removing the third object from the adjusted first area if the included angle is greater than or equal to a preset first threshold; and displaying the third object in the adjusted second area.
[0038] In one possible implementation, a first region displays a portion of a fourth object, and a second region displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a second migration module for: displaying the fourth object in an adjusted first region if the center of the fourth object is located in the first region; and displaying the fourth object in an adjusted second region if the center of the fourth object is located in the second region.
[0039] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a third migration module for: displaying the fourth object in the adjusted first area if the size of a portion of the fourth object is greater than or equal to the size of the other portion of the fourth object; and displaying the fourth object in the adjusted second area if the size of a portion of the fourth object is smaller than the size of the other portion of the fourth object.
[0040] In one possible implementation, the device further includes: a reduction module for reducing the size of the fourth object if the size of the fourth object is greater than or equal to the size of the adjusted first region, to obtain a reduced fourth object; and a second or third migration module for displaying the reduced fourth object in the first region.
[0041] In one possible implementation, the device further includes: a first receiving module for receiving a user's target operation on the display screen, the target operation being used to control the first area and the second area to fold or unfold via the third area; and an acquiring module for acquiring the angle between the first area and the second area in response to the target operation.
[0042] In one possible implementation, the device further includes: a second receiving module for receiving a user's drag operation on the display screen, the drag being used to move one of a plurality of first objects; a detection module for detecting, in response to the drag operation, whether the first object has moved from an adjusted first area to an adjusted third area; and a fourth adjustment module for displaying the first object in an adjusted second area if the first object has moved from the adjusted first area to the adjusted third area.
[0043] A fourth aspect of this application provides a display control device disposed in an electronic device. The display screen of the electronic device includes a first area, a second area, and a third area, with the third area located between the first and second areas. The first and second areas can be folded or unfolded through the third area. The first area displays a plurality of first objects, and the second area displays a plurality of second objects. The device includes: a receiving module for receiving a user's rotation operation on the electronic device, the rotation operation being used to control the electronic device to rotate a target angle; a detection module for detecting whether the target angle is greater than or equal to a preset second threshold in response to the rotation operation; and an adjustment module for adjusting the order of the plurality of first objects in the first area if the target angle is greater than or equal to the second threshold, so as to control the first area to display the adjusted plurality of first objects, and adjusting the order of the plurality of second objects in the second area, so as to control the second area to display the adjusted plurality of second objects.
[0044] In one possible implementation, the device further includes: a creation module for creating multiple desktop pages in a first area; a setting module for setting the adjusted multiple first objects in the multiple desktop pages; and a first control module for controlling the first area to display one of the multiple desktop pages.
[0045] In one possible implementation, the device further includes a first reduction module for reducing the size of the adjusted plurality of first objects in a first region to obtain a reduced plurality of first objects.
[0046] In one possible implementation, the first or second area also displays a third object, including a taskbar. The device further includes a second control module for controlling the first area to display a portion of the third object and controlling the second area to display another portion of the third object.
[0047] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a third control module for: displaying the fourth object in the first area if the center of the fourth object is located in the first area; and displaying the fourth object in the second area if the center of the fourth object is located in the second area.
[0048] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a fourth control module for displaying the fourth object in the first area if the size of a portion of the fourth object is greater than or equal to the size of the other portion of the fourth object; and for displaying the fourth object in the second area if the size of a portion of the fourth object is smaller than the size of the other portion of the fourth object.
[0049] In one possible implementation, the device further includes: a second reduction module, configured to reduce the size of the fourth object if the size of the fourth object is greater than or equal to the size of the adjusted first region, to obtain a reduced fourth object; and a third or fourth control module, configured to display the reduced fourth object in the first region.
[0050] In one possible implementation, a fifth object is displayed on the side of the first region away from the third region, and a sixth object is displayed on the side of the second region away from the third region. The fifth and sixth objects include a status bar. The device also includes a fifth control module for controlling the first region to display a portion of the fifth object and a portion of the sixth object, and controlling the second region to display another portion of the fifth object and another portion of the sixth object.
[0051] In one possible implementation, the device further includes a sixth control module, configured to: receive a user's drag operation on the display screen, the drag being used to move one of a plurality of first objects; in response to the drag operation, detect whether the first object has moved from a first area to a third area; if the first object has moved from the first area to the third area, display the first object in a second area.
[0052] A fifth aspect of this application provides an electronic device, which includes a memory and a processor; the memory stores code, and the processor is configured to execute the code. When the code is executed, the electronic device performs the method described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0053] A sixth aspect of this application provides a circuit system including a processing circuit configured to perform the method as described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0054] A seventh aspect of this application provides a chip system including a processor for calling a computer program or computer instructions stored in a memory to cause the processor to perform the method as described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0055] In one possible implementation, the processor is coupled to the memory via an interface.
[0056] In one possible implementation, the chip system also includes a memory that stores computer programs or computer instructions.
[0057] An eighth aspect of this application provides a computer storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method as described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0058] A ninth aspect of this application provides a computer program product storing instructions that, when executed by a computer, cause the computer to perform the method as described in the first aspect, any possible implementation of the first aspect, the second aspect, or any possible implementation of the second aspect.
[0059] In this embodiment, since the first region, the second region, and the third region are three regions obtained by logically dividing the entire display screen of the electronic device, the size of these three regions is adjustable. Thus, when the user folds or unfolds the first region and the second region, the processor of the electronic device can collect the included angle between the first region and the second region, and adjust the size of the first region, the second region, and the third region based on the included angle. Then, the content displayed in the first region and the second region after the adjustment are adaptively adjusted, so that the adjusted first region displays the adjusted content and the adjusted second region displays the adjusted content, thereby improving the content displayed on the entire display screen for the user, presenting a better visual effect, and improving the user experience. Attached Figure Description
[0060] Figure 1 is an exemplary structural diagram of electronic device 100;
[0061] Figure 2 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0062] Figure 3 is a schematic flowchart of a display control method for an electronic device provided in an embodiment of this application;
[0063] Figure 4 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0064] Figure 5 is a schematic diagram of a continuous function provided in an embodiment of this application;
[0065] Figure 6 is a schematic diagram of a step function provided in an embodiment of this application;
[0066] Figure 7 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0067] Figure 8 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0068] Figure 9 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0069] Figure 10 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0070] Figure 11 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0071] Figure 12 is another flowchart illustrating the display control method for an electronic device provided in an embodiment of this application.
[0072] Figure 13 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0073] Figure 14 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0074] Figure 15 is another structural schematic diagram of the electronic device provided in an embodiment of this application;
[0075] Figure 16 is a schematic diagram of a display control device provided in an embodiment of this application;
[0076] Figure 17 is another structural schematic diagram of the display control device provided in the embodiment of this application. Detailed Implementation
[0077] This application provides a display control method for an electronic device and related equipment, which can present users with better visual effects and improve user experience.
[0078] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0079] As users' demands for portable devices continue to increase, electronic devices with more diverse forms and functions are being continuously developed and applied. Based on this, foldable electronic devices have emerged, including foldable phones, foldable PCs, and more.
[0080] In related technologies, the display screen of a foldable electronic device can be logically divided into two areas: a vertical display area and a horizontal display area. When the foldable electronic device is in the folded state, the vertical display area is suspended above the horizontal plane, while the horizontal display area is parallel to the horizontal plane. These two areas together display a desktop for the user, and each area displays certain desktop elements. When the foldable electronic device is in the unfolded state, both areas are parallel to the horizontal plane, and each area still displays its respective desktop elements.
[0081] In the above process, regardless of whether the foldable electronic device is in a folded or unfolded state, the content displayed in these two areas of the screen remains consistent in both states and does not change with the state of the electronic device. For example, when the electronic device is in a folded state, the desktop elements displayed in these two areas appear to be too close together, while when the electronic device is in an unfolded state, the desktop elements displayed in these two areas appear to be far apart. As a result, the display of the electronic device cannot adaptively present a good visual effect to the user according to the state of the electronic device, leading to a poor user experience.
[0082] To address the aforementioned problems, this application provides a display control method for an electronic device. The electronic device implementing this method is typically a foldable electronic device used by the user, such as a foldable mobile phone, a foldable laptop, a foldable personal computer, etc. To facilitate understanding of the electronic device used by the user, the following description, in conjunction with Figure 1, further illustrates the electronic device (Figure 1 shows an exemplary structural schematic diagram of the electronic device 100). As shown in Figure 1, the electronic device 100 includes: an application processor 101, a microcontroller unit (MCU) 103, a memory 105, a modem 107, a radio frequency (RF) module 109, a Wireless-Fidelity (Wi-Fi) module 111, a Bluetooth module 113, a sensor 114, a positioning module 150, and input / output (I / O) devices 135, etc. These components can communicate via one or more communication buses or signal lines. Those skilled in the art will understand that the hardware structure shown in FIG1 does not constitute a limitation on the electronic device. The electronic device 100 may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0083] The following is a detailed description of each component of the electronic device 100 with reference to Figure 1:
[0084] The application processor 101 is the control center of the electronic device 100, connecting various components of the electronic device 100 via various interfaces and buses. In some embodiments, the processor 101 may include one or more processing units.
[0085] Memory 105 stores computer programs, such as operating system 161 and application program 163 as shown in FIG. 1. Application processor 101 is configured to execute the computer programs in memory 105 to implement the functions defined by the computer programs. For example, application processor 101 executes operating system 161 to implement various functions of the operating system on electronic device 100. Memory 105 also stores other data besides computer programs, such as data generated during the operation of operating system 161 and application program 163. Memory 105 is a non-volatile storage medium, generally including main memory and secondary storage. Main memory includes, but is not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), or cache. Secondary storage includes, but is not limited to, flash memory, hard disk, optical disk, universal serial bus (USB) disk, etc. Computer programs are usually stored on secondary storage, and the processor loads the computer program from secondary storage into main memory before executing it.
[0086] The memory 105 can be independent and connected to the application processor 101 via a bus; the memory 105 can also be integrated with the application processor 101 into a chip subsystem.
[0087] MCU 103 is a coprocessor used to acquire and process data from sensor 114. MCU 103 has lower processing power and power consumption than application processor 101, but features an "always-on" characteristic, allowing it to continuously collect and process sensor data while application processor 101 is in sleep mode, ensuring normal sensor operation with extremely low power consumption. In one embodiment, MCU 103 can be a sensor hub chip. Sensor 114 may include a light sensor and a motion sensor. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of display 151 according to the ambient light level, and the proximity sensor can turn off the power to the display when electronic device 100 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. Sensor 114 may also include other sensors such as a gyroscope, barometer, hygrometer, thermometer, and infrared sensor, which will not be described in detail here. The MCU 103 and sensor 114 can be integrated onto the same chip or they can be separate components connected via a bus.
[0088] Modem 107 and RF module 109 constitute the communication subsystem of electronic device 100, used to implement the main functions of wireless communication standard protocols such as 3GPP and ETSI. Modem 107 is used for encoding / decoding, signal modulation / demodulation, and equalization. RF module 109 is used for receiving and transmitting wireless signals, and includes, but is not limited to, an antenna, at least one amplifier, a coupler, and a duplexer. RF module 109 works with Modem 107 to implement wireless communication functions. Modem 107 can be a standalone chip or integrated with other chips or circuits to form a system-on-a-chip (SoC) or integrated circuit. These chips or integrated circuits can be used in all electronic devices that implement wireless communication functions, including: mobile phones, computers, laptops, tablets, routers, wearable devices, automobiles, and home appliances.
[0089] The electronic device 100 can also use Wi-Fi module 111, Bluetooth module 113, etc., for wireless communication. Wi-Fi module 111 provides network access to the electronic device 100 in accordance with Wi-Fi related standard protocols. The electronic device 100 can access the Wi-Fi access point through Wi-Fi module 111 and thus access the Internet. In some other embodiments, Wi-Fi module 111 can also act as a Wi-Fi wireless access point, providing Wi-Fi network access to other electronic devices. Bluetooth module 113 enables short-range communication between the electronic device 100 and other electronic devices (such as mobile phones, smartwatches, etc.). In the embodiments of this application, Wi-Fi module 111 can be an integrated circuit or a Wi-Fi chip, etc., and Bluetooth module 113 can be an integrated circuit or a Bluetooth chip, etc.
[0090] The positioning module 150 is used to determine the geographical location of the electronic device 100. It is understood that the positioning module 150 may specifically be a receiver for a positioning system such as the Global Positioning System (GPS), BeiDou Navigation Satellite System, or Russian GLONASS.
[0091] The Wi-Fi module 111, Bluetooth module 113, and positioning module 150 can each be a separate chip or integrated circuit, or they can be integrated together. For example, in one embodiment, the Wi-Fi module 111, Bluetooth module 113, and positioning module 150 can be integrated onto the same chip. In another embodiment, the Wi-Fi module 111, Bluetooth module 113, positioning module 150, and MCU 103 can also be integrated into the same chip.
[0092] Input / output devices 135 include, but are not limited to: display 151, touch screen 153, and audio circuitry 155, etc.
[0093] The touchscreen 153 can collect touch events from the user of the electronic device 100 on or near it (such as user actions on or near the touchscreen 153 using a finger, stylus, or any suitable object), and send the collected touch events to other devices (such as the application processor 101). User actions near the touchscreen 153 can be termed hover touch; through hover touch, the user can select, move, or drag targets (such as icons) without directly touching the touchscreen 153. Furthermore, the touchscreen 153 can be implemented using various types of touchscreens, including resistive, capacitive, infrared, and surface acoustic wave.
[0094] The display (also called a screen) 151 is used to display information input by the user or information shown to the user. The display can be configured using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or similar methods. A touchscreen 153 can be placed over the display 151. When the touchscreen 153 detects a touch event, it transmits the information to the application processor 101 to determine the type of touch event. The application processor 101 then provides corresponding visual output on the display 151 based on the type of touch event. Although in Figure 1, the touchscreen 153 and the display 151 are shown as two separate components implementing the input and output functions of the electronic device 100, in some embodiments, the touchscreen 153 and the display 151 can be integrated to implement the input and output functions of the mobile phone 100. Furthermore, the touchscreen 153 and the display 151 can be configured as a full-panel display on the front of the electronic device 100 to achieve a borderless structure.
[0095] Audio circuit 155, speaker 116, and microphone 117 provide an audio interface between the user and electronic device 100. Audio circuit 109 converts received audio data into electrical signals and transmits them to speaker 116, where speaker 116 converts them into sound signals for output. On the other hand, microphone 114 converts collected sound signals into electrical signals, which are received by audio circuit 155 and converted into audio data. The audio data is then transmitted to, for example, another electronic device via modem 107 and radio frequency module 109, or output to memory 105 for further processing.
[0096] In addition, the electronic device 100 may also have a fingerprint recognition function. For example, a fingerprint acquisition device may be configured on the back of the electronic device 100 (e.g., below the rear camera) or on the front of the electronic device 100 (e.g., below the touchscreen 153). Alternatively, the fingerprint acquisition device may be configured within the touchscreen 153 to implement the fingerprint recognition function; that is, the fingerprint acquisition device may be integrated with the touchscreen 153 to achieve the fingerprint recognition function of the electronic device 100. In this case, the fingerprint acquisition device is configured within the touchscreen 153, and may be part of the touchscreen 153 or configured in other ways within the touchscreen 153. The main component of the fingerprint acquisition device in this embodiment is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technologies.
[0097] Furthermore, the operating system 161 mounted on the electronic device 100 can provide... This application does not impose any restrictions on other operating systems, including those used in the embodiments of the present application.
[0098] With Taking the electronic device 100 with an operating system as an example, as shown in Figure 1, the electronic device 100 can be logically divided into a hardware layer, an operating system 161, and an application layer. The hardware layer includes hardware resources such as the hardware processor 101, microcontroller unit 105, modem 107, Wi-Fi module 111, sensor 114, and positioning module 150, as described above. The application layer includes one or more applications, such as application 163, which can be any type of application, such as a social application, e-commerce application, or browser. The operating system 161, as software middleware between the hardware layer and the application layer, is a computer program that manages and controls hardware and software resources.
[0099] In one embodiment, the operating system 161 includes a kernel, a hardware abstraction layer (HAL), libraries and runtime, and a framework. The kernel provides low-level system components and services, such as power management, memory management, thread management, and hardware drivers. Hardware drivers include Wi-Fi drivers, sensor drivers, and positioning module drivers. The HAL encapsulates the kernel drivers, providing interfaces to the framework and shielding them from low-level implementation details. The HAL runs in user space, while the kernel drivers run in kernel space.
[0100] Libraries and runtimes, also known as runtime libraries, provide the necessary library files and execution environment for executable programs at runtime. In one embodiment, libraries and runtimes include the Android Runtime (ART), libraries, and scene package runtimes. ART is a virtual machine or virtual machine instance capable of converting application bytecode into machine code. Libraries are program libraries that provide support for executable programs at runtime, including browser engines (such as WebKit), script execution engines (such as JavaScript engines), and graphics processing engines. The scene package runtime is the runtime environment for scene packages, mainly including the page execution environment and the script execution environment. The page execution environment parses page code in HTML, CSS, and other formats by calling corresponding libraries, while the script execution environment parses and executes code or executable files implemented in scripting languages such as JavaScript by calling corresponding function libraries.
[0101] The framework provides various basic public components and services for applications in the application layer, such as window management and location management. In one embodiment, the framework may include geofencing services, policy services, notification managers, and so on.
[0102] The functions of each component of the operating system 161 described above can be implemented by the application processor 101 executing the program stored in the memory 105.
[0103] It should be noted that the electronic device used to implement the method provided in the embodiments of this application may include a folding hinge and a foldable display screen. The hinge allows the two halves of the display screen to rotate around the hinge, that is, the two halves of the screen can be folded or unfolded. When the two halves of the screen are folded to a certain angle, the entire electronic device can be in a folded state; when the two halves of the screen are unfolded to a certain angle, the entire electronic device can be in an unfolded state. Based on this, users can fold or unfold the display screen of the electronic device to meet their device usage needs in different scenarios.
[0104] For the display control method provided in this application embodiment, the display screen of the electronic device can be logically divided into three areas in a certain way: a vertical display area (i.e., the aforementioned first area), a horizontal display area (i.e., the aforementioned second area), and a central axis avoidance area (i.e., the aforementioned third area). As shown in Figure 2 (Figure 2 is another structural schematic diagram of the electronic device provided in this application embodiment), assuming the electronic device is in a folded state, the suspended part of the screen in the display screen of the electronic device is the vertical display area, the horizontally placed part of the screen is the horizontal display area, and the middle part of the screen connecting the vertical display area and the horizontal display area is the central axis avoidance area. The central axis avoidance area corresponds to the folding hinge in the electronic device, so the central axis avoidance area includes the foldable part of the screen in the display screen. That is to say, the vertical display area and the horizontal display area can be folded or unfolded through the central axis avoidance area.
[0105] Generally, the vertical and horizontal display areas show the user's desktop, and these two areas are accessible to the user. The user's actions will cause changes to the content displayed in these two areas. The central axis avoidance area is usually not accessible to the user (e.g., the user clicks on an element on the desktop). The content displayed in it can be understood as part of the desktop, but it will not display other content related to the user's actions. This ensures the integrity of the content displayed in the three areas, and the user will not damage the screen by manipulating the central axis avoidance area.
[0106] It is worth noting that since the vertical display area, horizontal display area, and central axis avoidance area are three regions obtained by logically dividing the entire display screen of the electronic device, the size of these three regions (e.g., the height or area of the region) is adjustable. Thus, when the user folds or unfolds the vertical and horizontal display areas, the processor of the electronic device can collect the angle between the vertical and horizontal display areas and adjust the size of the vertical, horizontal, and central axis avoidance areas based on this angle. Then, it adaptively adjusts the content displayed in the adjusted vertical and horizontal display areas, so that the adjusted vertical and horizontal display areas display the adjusted content, thereby improving the content displayed on the entire display screen for the user and presenting a better visual effect to enhance the user experience. To further understand the working process of the electronic device, the following description, in conjunction with Figure 3, illustrates this process. Figure 3 is a flowchart illustrating a display control method for an electronic device provided in an embodiment of this application. As shown in Figure 3, this method can be implemented using a foldable electronic device as shown in Figure 1 or Figure 2. The display screen (also known as a foldable screen) of this electronic device may include a first area (e.g., a vertical display area), a second area (e.g., a horizontal display area), and a third area (e.g., a central axis avoidance area). The third area is located between the first and second areas. Since the third area is the portion of the screen corresponding to the folding hinge of the electronic device, the first and second areas can be folded or unfolded through the third area. The method includes:
[0107] 301. Receive the user's target operation on the display screen. The target operation is used to change the angle between the first area and the second area.
[0108] In this embodiment, during the use of their electronic device, the user can perform a target operation on the electronic device according to their own usage needs. If the target operation is a folding operation, the target operation can cause the first and second areas of the electronic device's display screen (under the action of the electronic device's folding hinge) to fold around the third area, thereby reducing the angle between the first and second areas, thus making the electronic device tend towards a folded state. If the target operation is an unfolding operation, the target operation can cause the first and second areas to unfold around the third area, thereby increasing the angle between the first and second areas, thus making the electronic device tend towards an unfolded state.
[0109] Therefore, after a user performs a target operation on an electronic device, the electronic device can detect the target operation in real time.
[0110] 302. In response to the target operation, obtain the angle between the first region and the second region.
[0111] After the electronic device detects the target operation, since the electronic device is equipped with an angle measuring device at the folding hinge, the angle measuring device can collect the angle formed between the first area and the second area changed by the target operation in real time at the request of the electronic device, and feed the angle back to the electronic device.
[0112] It should be noted that the angle between the first region and the second region usually refers to the angle between the plane containing the first region and the plane containing the second region on one side of the display screen. As shown in Figure 4 (Figure 4 is another structural schematic diagram of the electronic device provided in the embodiment of this application), assuming the user is using a foldable PC, the foldable PC includes an electronic device, a display screen, a hinge structure, and an angle measuring device. The display screen can be divided into a vertical display area, a horizontal display area, and a central axis avoidance area. When the user performs a folding or unfolding operation on the foldable PC, the vertical display area and the horizontal display area can be folded or unfolded around the central axis avoidance area. At this time, the electronic device can notify the angle measuring device based on the user's folding or unfolding operation to measure the angle between the vertical display area and the horizontal display area in real time. As can be seen, the included angle can be between 0° and 180°. When the included angle is 0°, the vertical display area and the horizontal display area are folded together, and the entire foldable PC is completely closed by the user, and the display screen is turned off. When the included angle is 180°, the vertical display area and the horizontal display area are completely unfolded, and the entire foldable PC is completely opened by the user. The entire display screen forms a plane, presenting the user with complete and integrated desktop content.
[0113] 303. Based on the included angle, adjust the dimensions of the first region, the second region, and the third region to obtain the adjusted first region, the adjusted second region, and the adjusted third region.
[0114] After determining the angle between the first and second regions, the electronic device can adjust the size of the first, second, and third regions based on this angle, thereby obtaining the adjusted first, second, and third regions, respectively. It should be noted that the size of the electronic device's display screen is fixed; that is, the sum of the sizes of the first, second, and third regions remains constant. The size of the first region plus half of the third region equals half the size of the display screen, and the size of the second region plus half of the third region equals half the size of the display screen. Correspondingly, the size of the adjusted first region plus half of the adjusted third region equals half the size of the display screen, and the size of the adjusted second region plus half of the adjusted third region equals half the size of the display screen.
[0115] Specifically, in some embodiments, the size of the third region can be its height, while in other embodiments, it can be its area, and so on. The height of the third region typically refers to the side of the third region perpendicular to the center line of the display screen when the electronic device is in its unfolded state; the width of the third region typically refers to the side of the third region parallel to the center line of the screen when the electronic device is in its unfolded state; and the area of the third region is typically the product of its height and width. Similarly, the dimensions of the first and second regions are also determined in the same way, and will not be elaborated upon here.
[0116] More specifically, this angle is negatively correlated with the size of the adjusted third area. Since the size of the display screen is fixed, this angle is positively correlated with the size of the adjusted first area, and also positively correlated with the size of the adjusted second area. In other words, the larger the angle, the smaller the size of the adjusted third area, the larger the size of the adjusted first area, and the larger the size of the adjusted second area. Conversely, the smaller the angle, the larger the size of the adjusted third area, the smaller the size of the adjusted first area, and the smaller the size of the adjusted second area.
[0117] As in the example above, after determining the angle between the vertical display area and the horizontal display area, the electronic device can use this angle to adjust the height of the vertical display area, the height of the horizontal display area, and the height of the central axis avoidance area, thereby obtaining the adjusted vertical display area, the adjusted horizontal display area, and the adjusted central axis avoidance area. It should be noted that the larger the included angle, the smaller the height (or area, etc.) of the adjusted central axis avoidance area; the smaller the included angle, the larger the height of the adjusted central axis avoidance area. In other words, the included angle is negatively correlated with the height of the adjusted central axis avoidance area. This negative correlation can be described by certain specific functions. For example, the relationship between the height of the adjusted central axis avoidance area and the included angle is a continuous function, which can be expressed as R = kx + b, where R is half the height of the adjusted central axis avoidance area (i.e., half the height), x is the included angle, and k and b are preset coefficients, usually k < 0. This continuous function can be expressed as the function shown in Figure 5 (Figure 5 is a schematic diagram of a continuous function provided in the embodiment of this application). Once a change in the included angle between the vertical display area and the horizontal display area is detected, the electronic device can determine the height of the adjusted central axis avoidance area based on this continuous function. For example, the relationship between the height of the adjusted central axis avoidance area and the included angle is a step function. This function defines several preset height values R1, R2, R3, etc., and each height value can correspond to a range of included angles. This step function can be presented as a function as shown in Figure 6 (Figure 6 is a schematic diagram of a step function provided in the embodiment of this application). Once the change in included angle is detected, the electronic device can determine the height of the adjusted central axis avoidance area, etc., based on the step function.
[0118] Based on the aforementioned negative correlation, as shown in Figure 7 (Figure 7 is another structural schematic diagram of the electronic device provided in this application embodiment), assuming the central axis avoidance area is symmetrical about the screen centerline of the display, and assuming the half-height of the central axis avoidance area (currently) is R', the electronic device can determine the adjusted half-height R'' of the central axis avoidance area based on this angle, and adjust the half-height of the central axis avoidance area from R' to R'', thereby obtaining the adjusted central axis avoidance area. Correspondingly, since the height L1' of the vertical display area and the half-height R' of the central axis avoidance area are half the height of the entire display, the height L1'' of the adjusted vertical display area can also be determined accordingly when determining the half-height R'' of the adjusted central axis avoidance area. Similarly, the height L2'' of the adjusted horizontal display area can also be determined in the same way. In this way, the electronic device can re-divide the display into the adjusted vertical display area, the adjusted horizontal display area, and the adjusted central axis avoidance area based on R'', L1'', and L2''.
[0119] Of course, the above example is only used to illustrate the adjustment of the height of the central axis avoidance area by the electronic device, and does not limit the parameters that the electronic device actually adjusts to the central axis avoidance area. For example, the electronic device can also adjust the size of the central axis avoidance area by adjusting the area of the central axis avoidance area, etc., which is not limited here.
[0120] 304. Based on the adjusted size of the third area, adjust the content displayed in the adjusted first area and the adjusted second area so that the adjusted first area displays the adjusted content and the adjusted second area displays the adjusted content.
[0121] After obtaining the adjusted first area, the adjusted second area, and the adjusted third area, the electronic device can adjust the content displayed in the adjusted first area (i.e., the content originally displayed in the first area) and the content displayed in the adjusted second area (i.e., the content originally displayed in the second area) based on the size of the adjusted third area, so that the adjusted content can adapt to the size of the adjusted first area and the size of the adjusted second area, thereby allowing the adjusted first area to display its adjusted content and the adjusted second area to display its adjusted content.
[0122] Specifically, electronic devices can adjust the content displayed in different areas of the screen in several ways:
[0123] (1) In the display screen of the electronic device, the first area may include a first sub-area close to the third area and a second sub-area far from the third area. The first sub-area may display multiple first objects (these multiple first objects are the content originally displayed in the first sub-area), which may include applications carried by the operating system running on the electronic device itself, as well as applications installed by the user on the operating system, etc.
[0124] In the original first region, since the first sub-region is closer to the third region and the second sub-region is farther away from the third region, when the electronic device adjusts the size of the third region, the electronic device can usually adaptively adjust the size of the first sub-region (for example, when increasing the size of the third region, the size of the first sub-region can be decreased, or when decreasing the size of the third region, the size of the first sub-region can be increased), and usually the size of the second sub-region will not be changed. In this way, the adjusted third region and the adjusted first region can be obtained one after the other.
[0125] However, since the multiple primary objects displayed in the first sub-region are usually the main objects that users frequently view and use, the electronic device can maintain the size of the first sub-region unchanged in order to provide users with a better visual experience. Therefore, after obtaining the adjusted third region, the electronic device can first obtain the difference between the size of the adjusted third region and the size of the original third region, and then adjust the size of the second sub-region based on this difference in the adjusted first region to keep the size of the first sub-region unchanged. In this way, the adjusted first sub-region (the size of the adjusted first sub-region is the same as the size of the original first sub-region) and the adjusted second sub-region can be obtained (at the same time, the difference between the size of the adjusted second sub-region and the size of the original second sub-region is usually equal to the difference between the size of the adjusted third region and the size of the original third region).
[0126] It should be noted that, in some embodiments, the electronic device can also control the positions of multiple first objects in the first sub-region and ensure that the positions of the multiple first objects in the adjusted first sub-region remain the same. Visually, since the size of the adjusted third region has changed compared to the original third region, the size of the adjusted first region has also changed compared to the original first region. The size of the adjusted second sub-region has also changed compared to the original second sub-region. Although the size of the adjusted first sub-region remains unchanged compared to the original first sub-region, its position on the display screen has changed compared to the original first sub-region. The electronic device can cause the positions of the multiple first objects on the display screen to change accordingly, thus ensuring that the positions of the multiple first objects in the original first sub-region and the adjusted first sub-region remain the same. Therefore, for the adjusted first region, the positions of the displayed multiple first objects have changed, which is the adjusted content displayed. In other embodiments, the electronic device may not keep the positions of the multiple first objects in the first sub-region and the positions of the multiple first objects in the adjusted first sub-region the same. That is, the electronic device may not make the positions of the multiple first objects on the display screen change with the position of the first sub-region on the display screen. No specific limitation is made here.
[0127] It should also be noted that during the entire content adjustment process, the electronic device does not change the size of the multiple first objects or the spacing between the multiple first objects, but only changes the position of the multiple first objects on the display screen.
[0128] Similarly, the electronic device can perform the same operations on the second area and the multiple second objects displayed in the second area as it would on the first area and the multiple first objects displayed in the first area, so that the adjusted second area will also display the adjusted content accordingly, which will not be elaborated here.
[0129] As in the example above, as shown in Figure 8 (Figure 8 is another structural schematic diagram of the electronic device provided in this application embodiment), suppose the user unfolds the entire electronic device, that is, the angle between the vertical display area and the horizontal display area is 180°. At this time, the half-height of the central axis avoidance area S1 is R', and the vertical display area includes the layout area S2 (i.e., the aforementioned first sub-area) and the screen edge area S3 (i.e., the aforementioned second sub-area). Suppose the user has a certain need and folds the electronic device so that the angle between the vertical display area and the horizontal display area changes from 180° to 135°. Based on the changed angle, the electronic device can increase the half-height of the central axis avoidance area S1 from R' to R'', and the difference between R'' and R' is H1. It can be seen that the adjusted central axis avoidance area S1 extends and expands towards the top of the display screen (the extension distance is H1). In order to keep the height of the layout area S2 unchanged, the electronic device can reduce the height of the screen edge area S3 by H2, and H2 is equal to H1. In this way, the height of the adjusted layout area S2 can remain unchanged, but the height of the adjusted screen edge area S3 is reduced. Therefore, the position of the adjusted layout area S2 on the display screen shifts upward as a whole (the upward shift distance is H1), while the adjusted screen edge area S3 shrinks inward (the shrinkage distance is H1). Based on this, the electronic device also needs to control the positions of the multiple fixed desktop elements (i.e., the aforementioned multiple first objects, such as multiple applications, etc.) displayed in the original layout area S2 to also shift upward on the display screen, so that the positions of these fixed desktop elements in the original layout area S2 are consistent with their positions in the adjusted layout area S2. This ensures that the layout area S2 presents similar desktop content to the user before and after the adjustment, thus ensuring a high-quality screen visual effect.
[0130] (2) In the display screen of the electronic device, the first area may include a first sub-area close to the third area and a second sub-area far from the third area. The first sub-area may display multiple first objects, which may include applications carried by the operating system running on the electronic device itself, as well as applications installed by the user on the operating system, etc. The second sub-area may display a status bar, etc.
[0131] In the original first region, since the first sub-region is closer to the third region and the second sub-region is farther away from the third region, when the electronic device adjusts the size of the third region, the electronic device can usually adaptively adjust the size of the first sub-region, and usually does not change the size of the second sub-region. In this way, the adjusted third region and the adjusted first region can be obtained one after the other.
[0132] Since the size of the second sub-region remains unchanged, while the size of the adjusted first sub-region changes compared to the original size, to provide a better visual experience for the user, the electronic device can adjust at least one of the dimensions of multiple first objects (e.g., the size or area of the multiple first objects) and the distance between the multiple first objects based on the included angle within the adjusted first sub-region. This allows the adjusted first sub-region to display the adjusted multiple first objects. Specifically, the dimensions of the adjusted multiple first objects are positively correlated with the included angle, and the distance between the adjusted multiple first objects is also positively correlated with the included angle. That is, the larger the included angle, the larger the dimensions of the adjusted multiple first objects and the greater the distance between them; conversely, the smaller the included angle, the smaller the dimensions of the adjusted multiple first objects and the smaller the distance between them.
[0133] Furthermore, the display screen of the electronic device can be divided into multiple grids (both the first and second regions can contain several grids), and each first object can occupy at least one grid. Therefore, when adjusting the size of any one first object, the electronic device can do so by adjusting the number of grids occupied by that first object, adjusting the size of the grids occupied by that first object, and adjusting the spacing between the grids occupied by that first object, among other methods. Similarly, when adjusting the spacing between that first object and the other first objects, the electronic device can also do so by adjusting the number of grids occupied by that first object, adjusting the size of the grids occupied by that first object, and adjusting the spacing between the grids occupied by that first object and the other first objects, among other methods.
[0134] As in the example above, as shown in Figure 9 (Figure 9 is another structural schematic diagram of the electronic device provided in this application embodiment), suppose the user unfolds the entire electronic device, that is, the angle between the vertical display area and the horizontal display area is 180°. At this time, the half-height of the central axis avoidance area S1 is R', and the vertical display area includes the layout area S2 and the screen edge area S3. Suppose the user has a certain need and folds the electronic device so that the angle between the vertical display area and the horizontal display area changes from 180° to 135°. Based on the changed angle, the electronic device can increase the half-height of the central axis avoidance area S1. It can be seen that the adjusted central axis avoidance area S1 extends and expands towards the top of the display screen. Due to the expansion of the adjusted central axis avoidance area S1, it causes the layout area S2 to shrink (its height decreases) while the screen edge area S3 remains unchanged. Since the adjusted (shrinked) layout area S2 defines multiple grids, which are distributed in an array within S2, the fixed desktop elements can be considered as being "attached" to these grids. Each fixed desktop element corresponds to one or more grids. Therefore, the size and spacing of these fixed desktop elements can be determined by parameters such as the number, size, and spacing of their corresponding grids. Because the included angle decreases from 180° to 135°, the electronic device can appropriately reduce the size and / or spacing of these fixed desktop elements. For example, the electronic device can reduce the number of grids corresponding to these fixed desktop elements to a certain extent, thereby reducing the size of the adjusted fixed desktop elements. Similarly, the electronic device can reduce the spacing between grids to a certain extent, thus reducing both the size and spacing of the adjusted fixed desktop elements. In this way, as the height of the adjusted layout area S2 decreases, the size or spacing of the adjusted fixed desktop elements displayed also decreases adaptively. This allows the electronic device's display screen to present appropriate content based on user operations, ensuring excellent screen visual performance.
[0135] Furthermore, if the spacing between fixed desktop elements is adjusted (increased or decreased), the electronic device can also adaptively rearrange these adjusted fixed desktop elements, which will not be elaborated here.
[0136] Similarly, the electronic device can perform the same operations on the second area and the multiple second objects displayed in the second area as it would on the first area and the multiple first objects displayed in the first area, so that the adjusted second area will also display the adjusted content accordingly, which will not be elaborated here.
[0137] More specifically, the electronic device may also perform the following operations:
[0138] In the display of an electronic device, the first area (first sub-area) can usually also display a third object, such as the taskbar (dock). After the display is re-divided into the adjusted first area, adjusted second area, and adjusted third area based on the included angle, if the included angle is greater than or equal to a preset first threshold (the size of the first threshold can be set according to actual needs and is not limited here), the electronic device can remove the third object from the adjusted first area and display the third object in the adjusted second area. In this way, the electronic device can successfully move the third object from the adjusted first area to the adjusted second area. If the included angle is less than the first threshold, the electronic device will not adjust the position of the third object.
[0139] As in the example above, as shown in Figure 10 (Figure 10 is another structural schematic diagram of the electronic device provided in the embodiment of this application), assuming that the user unfolds the electronic device so that the angle between the vertical display area and the horizontal display area increases from 90° to 160°, the dock bar is originally displayed at the bottom of the layout area of the vertical display area. Since 160° is greater than the set threshold (i.e. the aforementioned first threshold), after the electronic device adjusts the height of the vertical display area, the height of the horizontal display area, and the height of the central axis avoidance area respectively, the dock bar can be moved from the layout area of the adjusted vertical display area to the layout area of the adjusted horizontal display area.
[0140] More specifically, the electronic device may also perform the following operations:
[0141] The display screen of an electronic device may also display a fourth object, including windows generated by user-triggered applications or the taskbar. It should be noted that the first, second, and third objects mentioned above are objects permanently displayed on the electronic device's screen, also known as fixed desktop elements, such as applications, components, cards, widgets, and the dock. The fourth object, however, is an object temporarily displayed on the electronic device's screen, also known as a temporary desktop element, such as temporary windows generated by user-triggered applications, components, cards, widgets, and the dock. In other words, when the electronic device is powered off and then back on, the screen will no longer display the fourth object, but will still display the first, second, and third objects.
[0142] When the fourth object is displayed only in the first area, after the display screen is re-divided into the adjusted first area, the adjusted second area, and the adjusted third area, the electronic device still displays the fourth object in the adjusted first area. For example, if the adjusted first area maintains the same size as the original first area, the position of the adjusted first area on the display screen will change. Therefore, the electronic device can control the position of the fourth object on the display screen to change accordingly, so that the position of the fourth object in the original first area remains the same as its position in the adjusted first area. When the fourth object is displayed only in the second area, the electronic device can perform a similar operation, which will not be elaborated here.
[0143] When a fourth object is displayed simultaneously in both the first and second areas—that is, when a portion of the fourth object is displayed in the first area and another portion in the second area—the electronic device can control the display screen to show the fourth object in several ways:
[0144] (1) The electronic device records the location of the center of the fourth object in advance. After the display screen is re-divided into the adjusted first area, the adjusted second area, and the adjusted third area, if the center of the fourth object is located in the original first area, the electronic device can determine that the fourth object belongs to the adjusted first area, and then displays the fourth object in the adjusted first area. If the center of the fourth object is located in the original second area, the electronic device can determine that the fourth object belongs to the adjusted second area, and then displays the fourth object in the adjusted second area.
[0145] (2) The electronic device records in advance the size of this part of the fourth object (displayed in the first area) and the size of the other part of the fourth object (displayed in the second area). If the size of this part of the fourth object is greater than or equal to the size of the other part of the fourth object, the electronic device can determine that the fourth object belongs to the adjusted first area and then displays the fourth object in the adjusted first area. If the size of this part of the fourth object is smaller than the size of the other part of the fourth object, the electronic device can determine that the fourth object belongs to the adjusted second area and then displays the fourth object in the adjusted second area.
[0146] As in the example above, as shown in Figure 11 (Figure 11 is another structural schematic diagram of the electronic device provided in this application embodiment), assuming the angle between the vertical display area and the horizontal display area of the electronic device is 180°, a window (i.e., a temporary desktop element) generated by the user using an application is simultaneously displayed in both the vertical and horizontal display areas. After the user folds the electronic device, the angle between the vertical and horizontal display areas changes from 180° to 135°. After the electronic device re-divides the display screen into the adjusted vertical display area, the adjusted central axis avoidance area, and the adjusted horizontal display area, since 135° is less than a certain threshold (e.g., 170°), the electronic device can detect the original position of the window's center. Since the window's center was originally located in the original vertical display area, the electronic device can display the window in the adjusted vertical display area.
[0147] Of course, if the user continues to fold the electronic device, that is, the included angle continues to decrease from 135°, the vertical display area that is being adjusted will continue to move upward. Therefore, the electronic device can make the window move upward along with the vertical display area that is being adjusted, and the relative position of the window in the second area remains unchanged.
[0148] More specifically, the electronic device may also perform the following operations:
[0149] If the electronic device displays the fourth object separately in the adjusted first area, the electronic device can also detect whether the size of the fourth object is greater than or equal to the size of the adjusted first area (e.g., whether the height of the fourth object is greater than or equal to the height of the adjusted first area, etc.). If the size of the fourth object is greater than or equal to the size of the adjusted first area, the electronic device reduces the size of the fourth object to a certain extent (e.g., adjusts the height, width, area, etc. of the fourth object) so that the size of the adjusted fourth object is smaller than the size of the adjusted first area, so that the adjusted first area can display the reduced fourth object.
[0150] Similarly, if the electronic device displays the fourth object separately in the adjusted second area, the electronic device can also perform a similar operation, which will not be elaborated here.
[0151] As in the example above, after the electronic device displays the window in the adjusted vertical display area, if the height of the window is still greater than the height of the adjusted vertical display area, then part of the window will still be displayed in the adjusted horizontal display area. In this case, the electronic device will shrink the window by a certain proportion and then display the shrunken window only in the adjusted vertical display area.
[0152] More specifically, the electronic device may also perform the following operations:
[0153] When a user needs to move one of multiple first objects, the user can perform a drag operation on the display screen. In response to the drag operation, the electronic device can detect whether the first object has moved from the adjusted first area to the adjusted third area. If so, the electronic device can directly display the first object in the adjusted second area.
[0154] Continuing with the example above, when a user drags a fixed desktop element within the adjusted vertical display area, the electronic device can detect this dragging action in real time. If the device detects that the user has moved the fixed desktop element to the adjusted central axis avoidance area, and the area of the fixed desktop element that has crossed the central axis avoidance area reaches a certain threshold (e.g., 40% of the total area of the fixed desktop element), the electronic device will directly display the fixed desktop element in the layout area of the adjusted horizontal display area. Furthermore, the fixed desktop element can be displayed among other fixed desktop elements according to a certain arrangement rule, which can be referenced from the aforementioned rules and will not be repeated here. If the layout area of the adjusted horizontal display area cannot accommodate the fixed desktop element, the electronic device can also resolve the situation by adding desktop pages or reducing the size of desktop elements, as described above.
[0155] The above is a detailed description of the user folding or unfolding the electronic device. The following describes the user rotating the electronic device. Figure 12 is another flowchart illustrating the display control method for an electronic device provided in this application embodiment. This method can be implemented using a foldable electronic device as shown in Figure 1 or Figure 2. The display screen of the electronic device may include a first area, a second area, and a third area. The third area is located between the first and second areas. The first and second areas can be folded or unfolded through the third area. The first area displays multiple first objects, and the second area displays multiple second objects. As shown in Figure 12, the method includes:
[0156] 1201. Receives user rotation operations on the electronic device. The rotation operations are used to control the electronic device to rotate to a target angle.
[0157] 1202. In response to a rotation operation, detect whether the target angle is greater than or equal to a preset second threshold.
[0158] 1203. If the target angle is greater than or equal to the second threshold, the sorting of multiple first objects in the first area is adjusted to control the display of the adjusted multiple first objects in the first area, and the sorting of multiple second objects in the second area is adjusted to control the display of the adjusted multiple second objects in the second area.
[0159] In this embodiment, during the use of their electronic device, the user can perform a rotation operation on the electronic device according to their own usage needs. The rotation operation can rotate the entire electronic device by a target angle. After the electronic device detects the rotation operation, it can detect whether the target angle of rotation of the electronic device is greater than or equal to a preset second threshold (the size of the second threshold can be set according to actual needs and is not limited here).
[0160] If the target angle is less than the second threshold, the electronic device does not perform any operation. If the target angle is greater than or equal to the second threshold, since the first and second regions have been rotated by the target angle, the width and height of the first region and the width and height of the second region are interchanged. Therefore, the electronic device can use certain arrangement rules to rearrange multiple first objects in the first region to adjust the order of the multiple first objects in the first region (for example, according to the rule of top to bottom and left to right, multiple first objects are arranged to fill the first column, second column, and third column of the first region in sequence, etc.; or, according to the rule of top to bottom and left to right, multiple first objects are arranged to fill the first row, second row, and third row of the first region in sequence, etc.), resulting in adjusted multiple first objects. Similarly, the electronic device can also use the same arrangement rules to rearrange multiple second objects in the second region to adjust the order of the multiple second objects in the second region, resulting in adjusted multiple second objects.
[0161] For example, as shown in Figure 13 (Figure 13 is another structural schematic diagram of the electronic device provided in the embodiment of this application), after the user rotates the electronic device in the unfolded state according to their own needs, the vertical display area and the horizontal display area in the display screen of the electronic device are rotated accordingly. At this time, the electronic device can detect the angle of rotation of the electronic device. Let the angle be 90°. Since the angle is greater than the preset threshold of 80° (i.e., the aforementioned second threshold), for the vertical display area, it originally displayed multiple half-screen desktop elements (i.e., the aforementioned multiple first objects, including applications, components, cards, and parts, etc.). The electronic device can reorder these multiple half-screen desktop elements in the rotated vertical display area according to the rule of top to bottom and left to right, so that they fill the first column, the second column, the third column, ..., the last column in sequence. In this way, the vertical display area can display the adjusted multiple half-screen desktop elements. Similarly, for the horizontal display area, which originally displayed multiple half-screen desktop elements (i.e., the aforementioned multiple second objects, including applications, components, cards, and parts, etc.), the electronic device can reorder these multiple half-screen desktop elements in the rotated horizontal display area according to the rule of top to bottom and left to right, so that they fill the first column, the second column, the third column, ..., the last column in sequence. In this way, the horizontal display area can display the adjusted multiple half-screen desktop elements.
[0162] Specifically, the electronic device may also perform the following operations:
[0163] Because the first region has been rotated, the size of the area in the first region that was originally used to display multiple first objects may become smaller. In order to ensure that the adjusted (sorted) multiple first objects can still be fully set in the first region, the electronic device may perform any of the following operations:
[0164] (1) An electronic device can create multiple desktop pages in a first area and set the adjusted multiple first objects in the multiple desktop pages respectively. That is, a desktop page can contain at least one adjusted first object. Then, the electronic device can display one of the multiple desktop pages in the first area. This desktop page can present at least one adjusted first object to the user. When the user needs to view and use other adjusted first objects, the user can perform a page turning operation in the first area. In response to the page turning operation, the electronic device can display the next desktop page in the multiple desktop pages in the first area. This desktop page can present the other adjusted first objects to the user.
[0165] As in the example above, as shown in Figure 14 (Figure 14 is another structural schematic diagram of the electronic device provided in the embodiment of this application), when the electronic device rotates clockwise from the vertical unfolded state to the horizontal unfolded state (i.e., rotates 90°), the vertical display area rotates from the top of the display screen to the right side of the display screen. Since the layout area of the vertical display area originally displayed a large number of half-screen desktop elements (including applications, etc.), and the size of the layout area becomes smaller after rotation (not unfolded here), it is possible that all of these half-screen desktop elements after adjustment and sorting may not be able to be placed in the smaller layout area. Therefore, the electronic device can create two desktop pages in the smaller layout area, and set some of the adjusted and sorted half-screen desktop elements in the first desktop page, and set the other part of the adjusted and sorted half-screen desktop elements in the next desktop page. Users can switch between the two desktop pages by flipping (switching) to view and use the half-screen desktop elements displayed on the two desktops.
[0166] (2) In the first area, the electronic device can reduce the size of the adjusted multiple first objects to a certain extent so that the first area displays the reduced multiple first objects.
[0167] As in the example above, since the layout area of the vertical display area can be defined with multiple grids, each half-screen desktop element corresponds to at least one grid. After obtaining multiple half-screen desktop elements after adjustment and sorting, because the size of the layout area becomes smaller after rotation, these adjusted and sorted half-screen desktop elements may not be able to be placed entirely in the smaller layout area. Therefore, the electronic device can reduce the size of each half-screen desktop element by reducing the number of grids, the size of the grids, and the spacing between the grids, so that the shrunken half-screen desktop elements can be displayed in the smaller layout area. As shown in Figure 15 (Figure 15 is another structural schematic diagram of the electronic device provided in the embodiment of this application), each half-screen desktop element in the layout area of the vertical desktop area occupies a certain number of grids. For example, if there are 5 components in the layout area, each component occupies 16 grids. The electronic device can reduce the number of grids occupied by each group to 8, thus freeing up 40 grids. The half-screen desktop element in the virtual frame needs 20 grids, so that the half-screen desktop element in the dashed frame can be completely placed in the rotated layout area. Of course, electronic devices can also reduce the number of grids occupied by all half-screen desktop elements, or they can reduce the number of grids occupied by only some half-screen desktop elements; there are no restrictions here.
[0168] Similarly, the second area also rotates, and the electronic device can perform the same operations on the second area as it did on the first area, which will not be elaborated further here. It is worth noting that if the electronic device creates multiple desktop pages in both the first and second areas, the desktop pages in the first and second areas can be either integrated or separate; there is no restriction on this.
[0169] More specifically, the electronic device may also perform the following operations:
[0170] In the display screen of an electronic device, a third object is also displayed on the side of the first or second area that is close to the third area. The third object includes the taskbar, etc. Since the first area has been rotated, the third object that was originally only displayed in the first area needs to be displayed in both the first and second areas at the same time. Therefore, the electronic device can control the first area to display a part of the third object and control the second area to display another part of the third object.
[0171] As in the example above, when the electronic device is in the vertically unfolded state, the taskbar is displayed in the layout area of the horizontal display area. When the electronic device is rotated to the horizontally unfolded state, since the taskbar is a full-screen desktop element, the electronic device can control the rotated vertical display area and the horizontal display area to display the taskbar together, so that the taskbar spans the vertical display area and the horizontal display area.
[0172] More specifically, the electronic device may also perform the following operations:
[0173] In the display screen of an electronic device, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object. The fourth object includes windows generated by user-triggered applications or taskbars, etc. The electronic device can determine the ownership of the fourth object in several ways: (1) If the center of the fourth object is located in the first area, the fourth object is displayed in the first area; if the center of the fourth object is located in the second area, the fourth object is displayed in the second area. (2) If the size of a portion of the fourth object is greater than or equal to the size of another portion of the fourth object, the fourth object is displayed in the first area; if the size of a portion of the fourth object is smaller than the size of another portion of the fourth object, the fourth object is displayed in the second area.
[0174] However, if the electronic device determines that the fourth object should be displayed in the first area, and the size of the fourth object is greater than or equal to the size of the first area, the size of the fourth object will be reduced to obtain and display the reduced fourth object in the first area. Similarly, the same applies if the electronic device determines that the fourth object should be displayed in the second area, which will not be elaborated here.
[0175] It should be noted that the processing of the fourth object by the electronic device can be referred to the relevant explanatory section in the embodiment shown in Figure 3, and will not be repeated here.
[0176] More specifically, the electronic device may also perform the following operations:
[0177] In the display screen of an electronic device, a fifth object is displayed on the side of the first area furthest from the third area, and a sixth object is displayed on the side of the second area furthest from the third area. The fifth and sixth objects include a status bar, etc. Because both the first and second areas have been rotated, the fifth object, which was originally only displayed in the first area, and the sixth object, which was originally only displayed in the second area, need to be displayed in both areas simultaneously. Therefore, the electronic device can control the first area to display a portion of the fifth object and a portion of the sixth object, and control the second area to display another portion of the fifth object and another portion of the sixth object.
[0178] It should be noted that, for the first area, since it originally only needed to display multiple first, third, fourth, and fifth objects, after the rotation, the first area also needs to display a sixth object. Therefore, the electronic device will free up some area originally used to display multiple first objects for the sixth object, resulting in a smaller size of this area. The same applies to the second area, which will not be elaborated upon here.
[0179] Continuing with the example above, when the electronic device is in a vertically unfolded state, the top status bar is displayed at the edge of the vertical display area, and the bottom status bar is displayed at the edge of the horizontal display area. When the electronic device is rotated to a horizontally unfolded state, since both status bars are full-screen desktop elements, the electronic device can control both the vertical and horizontal display areas to share these two status bars, allowing them to span both areas.
[0180] More specifically, the electronic device may also perform the following operations:
[0181] When a user needs to move one of a plurality of first objects, the user can perform a drag operation on the first object on the display screen. In response to the drag operation, the electronic device can detect whether the first object has moved from a first area to a third area. If so, the electronic device displays the first object in a second area.
[0182] It should be noted that the handling of dragging operations by electronic devices can be found in the relevant description section of the embodiment shown in Figure 3, and will not be repeated here.
[0183] In this embodiment, since the first region, the second region, and the third region are three regions obtained by logically dividing the entire display screen of the electronic device, the size of these three regions is adjustable. Thus, when the user folds or unfolds the first region and the second region, the processor of the electronic device can collect the included angle between the first region and the second region, and adjust the size of the first region, the second region, and the third region based on the included angle. Then, the content displayed in the first region and the second region after the adjustment are adaptively adjusted, so that the adjusted first region displays the adjusted content and the adjusted second region displays the adjusted content, thereby improving the content displayed on the entire display screen for the user, presenting a better visual effect, and improving the user experience.
[0184] Furthermore, in this embodiment, when the user folds the first area and the second area, the plurality of first objects displayed in the adjusted first area and the plurality of second objects displayed in the adjusted second area are further apart; when the user unfolds the first area and the second area, the plurality of first objects displayed in the adjusted first area and the plurality of second objects displayed in the adjusted second area are closer together. This ensures that when the user folds or unfolds the electronic device, the distance between the fixed desktop elements (first objects and second objects) displayed on the screen of the electronic device is sufficiently reasonable and has a certain degree of visual coordination, thereby improving the user experience.
[0185] Furthermore, in this embodiment, when the user folds the first area and the second area, the fourth object that was originally displayed together in the first area and the second area can be displayed only in the adjusted first area or the adjusted second area under the control of the processor. This allows the temporary desktop element (the fourth object) to move flexibly and be displayed in a separate half-screen when the user folds the electronic device, avoiding the problem of poor visual quality caused by its display in the adjusted central axis avoidance area (the adjusted third area).
[0186] Furthermore, in this embodiment, the size of the fourth object can be reduced to a certain extent to ensure that the reduced fourth object can be displayed only in the adjusted first area or the adjusted second area, so that the user can view the temporary desktop elements in only one half-screen.
[0187] Furthermore, in this embodiment of the application, when the user rotates the electronic device, the processor can reorder the multiple first objects in the first area and the multiple second objects in the second area, and determine that the adjusted multiple first objects are only displayed in the first area and the adjusted multiple second objects are only displayed in the second area. This can maintain the original content ownership of the display screen, so that the user can continue to watch and use the content on the display screen according to the original habit after selecting the electronic device, thereby further improving the user experience.
[0188] Furthermore, in this embodiment, when a user drags a first object in the first area, the processor can detect whether the first object has been dragged to the third area, thereby determining the user's dragging intention. Once the first object is dragged to the third area, it indicates that the user needs to move the first object from the first area to the second area. Therefore, the processor can directly display the first object in the second area, thereby saving the user's dragging operation and further improving the user experience.
[0189] The above is a detailed description of the display control method for an electronic device provided in the embodiments of this application. The following will describe the display control device provided in the embodiments of this application. Figure 16 is a structural schematic diagram of the display control device provided in the embodiments of this application. As shown in Figure 16, the device is disposed in an electronic device. The display screen of the electronic device includes a first area, a second area, and a third area. The third area is located between the first and second areas. The first and second areas can be folded or unfolded through the third area. The device includes:
[0190] The acquisition module 1601 is used to receive the user's target operation on the display screen, the target operation being used to change the angle between the first area and the second area;
[0191] The first adjustment module 1602 is used to adjust the size of the first region, the size of the second region, and the size of the third region based on the target operation, so as to obtain the adjusted first region, the adjusted second region, and the adjusted third region.
[0192] The second adjustment module 1603 is used to adjust the content displayed in the first area and the second area based on the size of the third area, so that the first area displays the adjusted content and the second area displays the adjusted content.
[0193] In one possible implementation, the included angle is negatively correlated with the size of the adjusted third region, positively correlated with the size of the adjusted first region, and positively correlated with the size of the adjusted second region.
[0194] In one possible implementation, the first region includes a first sub-region close to the third region and a second sub-region far from the third region. The first sub-region displays multiple first objects, including applications. The second adjustment module 1603 is used to: obtain the difference between the size of the adjusted third region and the size of the third region; and adjust the size of the second sub-region based on the difference in the adjusted first region to keep the size of the first sub-region unchanged, thereby obtaining the adjusted first sub-region and the adjusted second sub-region, wherein the positions of the multiple first objects in the first sub-region and the positions of the multiple first objects in the adjusted first sub-region are the same.
[0195] In one possible implementation, the size of the third region includes the height or area of the third region.
[0196] In one possible implementation, a first region displays a plurality of first objects, and a second adjustment module 1603 is used to adjust, in the adjusted first region, at least one of the dimensions of the plurality of first objects and the distance between the plurality of first objects based on the included angle, to obtain the adjusted plurality of first objects.
[0197] In one possible implementation, the adjusted dimensions of the plurality of first objects are positively correlated with the included angle, and the distance between the plurality of first objects is positively correlated with the included angle.
[0198] In one possible implementation, the first area also displays a third object, including the taskbar, and the device further includes: a first migration module for: removing the third object from the adjusted first area if the included angle is greater than or equal to a preset first threshold; and displaying the third object in the adjusted second area.
[0199] In one possible implementation, a first region displays a portion of a fourth object, and a second region displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a second migration module for: displaying the fourth object in an adjusted first region if the center of the fourth object is located in the first region; and displaying the fourth object in an adjusted second region if the center of the fourth object is located in the second region.
[0200] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a third migration module for: displaying the fourth object in the adjusted first area if the size of a portion of the fourth object is greater than or equal to the size of the other portion of the fourth object; and displaying the fourth object in the adjusted second area if the size of a portion of the fourth object is smaller than the size of the other portion of the fourth object.
[0201] In one possible implementation, the device further includes: a reduction module for reducing the size of the fourth object if the size of the fourth object is greater than or equal to the size of the adjusted first region, to obtain a reduced fourth object; and a second or third migration module for displaying the reduced fourth object in the first region.
[0202] In one possible implementation, the device further includes: a first receiving module for receiving a user's target operation on the display screen, the target operation being used to control the first area and the second area to fold or unfold via the third area; and an acquiring module for acquiring the angle between the first area and the second area in response to the target operation.
[0203] In one possible implementation, the device further includes: a second receiving module for receiving a user's drag operation on the display screen, the drag being used to move one of a plurality of first objects; a detection module for detecting, in response to the drag operation, whether the first object has moved from an adjusted first area to an adjusted third area; and a fourth adjustment module for displaying the first object in an adjusted second area if the first object has moved from the adjusted first area to the adjusted third area.
[0204] Figure 17 is another structural schematic diagram of the display control device provided in an embodiment of this application. As shown in Figure 17, the device is disposed in an electronic device. The display screen of the electronic device includes a first area, a second area, and a third area. The third area is located between the first area and the second area. The first area and the second area can be folded or unfolded through the third area. The first area displays a plurality of first objects, and the second area displays a plurality of second objects. The device includes:
[0205] The receiving module 1701 is used to receive the user's rotation operation on the electronic device, and the rotation operation is used to control the electronic device to rotate to a target angle.
[0206] Detection module 1702 is used to detect whether the target angle is greater than or equal to a preset second threshold in response to a rotation operation;
[0207] The adjustment module 1703 is used to adjust the sorting of multiple first objects in the first region if the target angle is greater than or equal to the second threshold, so as to control the display of the adjusted multiple first objects in the first region, and to adjust the sorting of multiple second objects in the second region, so as to control the display of the adjusted multiple second objects in the second region.
[0208] In one possible implementation, the device further includes: a creation module for creating multiple desktop pages in a first area; a setting module for setting the adjusted multiple first objects in the multiple desktop pages; and a first control module for controlling the first area to display one of the multiple desktop pages.
[0209] In one possible implementation, the device further includes a first reduction module for reducing the size of the adjusted plurality of first objects in a first region to obtain a reduced plurality of first objects.
[0210] In one possible implementation, the first or second area also displays a third object, including a taskbar. The device further includes a second control module for controlling the first area to display a portion of the third object and controlling the second area to display another portion of the third object.
[0211] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a third control module for: displaying the fourth object in the first area if the center of the fourth object is located in the first area; and displaying the fourth object in the second area if the center of the fourth object is located in the second area.
[0212] In one possible implementation, a first area displays a portion of a fourth object, and a second area displays another portion of the fourth object, the fourth object including a window generated by a user-triggered application or taskbar. The device further includes a fourth control module for displaying the fourth object in the first area if the size of a portion of the fourth object is greater than or equal to the size of the other portion of the fourth object; and for displaying the fourth object in the second area if the size of a portion of the fourth object is smaller than the size of the other portion of the fourth object.
[0213] In one possible implementation, the device further includes: a second reduction module, configured to reduce the size of the fourth object if the size of the fourth object is greater than or equal to the size of the adjusted first region, to obtain a reduced fourth object; and a third or fourth control module, configured to display the reduced fourth object in the first region.
[0214] In one possible implementation, a fifth object is displayed on the side of the first region away from the third region, and a sixth object is displayed on the side of the second region away from the third region. The fifth and sixth objects include a status bar. The device also includes a fifth control module for controlling the first region to display a portion of the fifth object and a portion of the sixth object, and controlling the second region to display another portion of the fifth object and another portion of the sixth object.
[0215] In one possible implementation, the device further includes a sixth control module, configured to: receive a user's drag operation on the display screen, the drag being used to move one of a plurality of first objects; in response to the drag operation, detect whether the first object has moved from a first area to a third area; if the first object has moved from the first area to the third area, display the first object in a second area.
[0216] It should be noted that the information interaction and execution process between the modules / units of the above-mentioned device are based on the same concept as the method embodiment of this application, and the resulting technical effects are the same as those of the method embodiment of this application. For details, please refer to the description in the method embodiment shown above in the embodiment of this application, and it will not be repeated here.
[0217] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0218] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0219] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0220] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0221] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A display control method for an electronic device, characterized in that, The display screen of the electronic device includes a first area, a second area, and a third area, wherein the third area is located between the first area and the second area, and the first area and the second area can be folded or unfolded through the third area. The method includes: Receive a user's target operation on the display screen, the target operation being used to change the angle between the first area and the second area; Based on the target operation, the size of the first region, the size of the second region, and the size of the third region are adjusted to obtain the adjusted first region, the adjusted second region, and the adjusted third region. Based on the adjusted size of the third region, the content displayed in the adjusted first region and the content displayed in the adjusted second region are adjusted so that the adjusted first region displays the adjusted content and the adjusted second region displays the adjusted content.
2. The method according to claim 1, characterized in that, The included angle is negatively correlated with the size of the adjusted third region, positively correlated with the size of the adjusted first region, and positively correlated with the size of the adjusted second region.
3. The method according to claim 1 or 2, characterized in that, The first region includes a first sub-region close to the third region and a second sub-region far from the third region. The first sub-region displays a plurality of first objects, including applications. Adjusting the content displayed in the adjusted first region based on the size of the adjusted third region includes: Obtain the difference between the adjusted size of the third region and the original size of the third region; In the adjusted first region, the size of the second sub-region is adjusted based on the difference to keep the size of the first sub-region unchanged, resulting in an adjusted first sub-region and an adjusted second sub-region, wherein the positions of the plurality of first objects in the first sub-region and the positions of the plurality of first objects in the adjusted first sub-region are the same.
4. The method according to claim 3, characterized in that, The dimensions of the third region include its height or area.
5. The method according to claim 1 or 2, characterized in that, The first area displays multiple first objects, and adjusting the content displayed in the adjusted first area based on the size of the adjusted third area includes: In the adjusted first region, at least one of the dimensions of the plurality of first objects and the distance between the plurality of first objects is adjusted based on the included angle to obtain the adjusted plurality of first objects.
6. The method according to claim 5, characterized in that, The adjusted dimensions of the plurality of first objects are positively correlated with the included angle, and the distance between the plurality of first objects is positively correlated with the included angle.
7. The method according to any one of claims 1 to 6, characterized in that, The first area also displays a third object, the third object including the taskbar, and the method further includes: If the included angle is greater than or equal to a preset first threshold, the third object is removed from the adjusted first region; The third object is displayed in the adjusted second area.
8. The method according to any one of claims 1 to 7, characterized in that, The first area displays a portion of the fourth object, and the second area displays another portion of the fourth object, the fourth object including a window generated by the user triggering an application or taskbar. The method further includes: If the center of the fourth object is located in the first region, the fourth object is displayed in the adjusted first region; If the center of the fourth object is located in the second region, the fourth object is displayed in the adjusted second region.
9. The method according to any one of claims 1 to 7, characterized in that, The first area displays a portion of the fourth object, and the second area displays another portion of the fourth object, the fourth object including a window generated by the user triggering an application or taskbar. The method further includes: If the size of a portion of the fourth object is greater than or equal to the size of another portion of the fourth object, the fourth object is displayed in the adjusted first area; If the size of a portion of the fourth object is smaller than the size of another portion of the fourth object, the fourth object is displayed in the adjusted second area.
10. The method according to claim 8 or 9, characterized in that, The method further includes: If the size of the fourth object is greater than or equal to the size of the adjusted first region, the size of the fourth object is reduced to obtain a reduced fourth object. Displaying the fourth object in the first area includes: The scaled-down fourth object is displayed in the first area.
11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: Receive the user's drag operation on the display screen, the drag being used to move one of a plurality of first objects; In response to the drag operation, detect whether the first object has moved from the adjusted first area to the adjusted third area; If the first object moves from the adjusted first region to the adjusted third region, the first object is displayed in the adjusted second region.
12. A display control method for an electronic device, characterized in that, The display screen of the electronic device includes a first area, a second area, and a third area, the third area being located between the first area and the second area. The first area and the second area can be folded or unfolded through the third area. The first area displays a plurality of first objects, and the second area displays a plurality of second objects. The method includes: The device receives a user's rotation operation on the electronic device, the rotation operation being used to control the electronic device to rotate by a target angle; In response to the rotation operation, detect whether the target angle is greater than or equal to a preset second threshold; If the target angle is greater than or equal to the second threshold, the sorting of the plurality of first objects in the first region is adjusted to control the display of the adjusted plurality of first objects in the first region, and the sorting of the plurality of second objects in the second region is adjusted to control the display of the adjusted plurality of second objects in the second region.
13. The method according to claim 12, characterized in that, The method further includes: Create multiple desktop pages in the first area; Set the adjusted plurality of first objects in the plurality of desktop pages; Control the first area to display one of the multiple desktops.
14. The method according to claim 12, characterized in that, The method further includes: In the first region, the size of the adjusted plurality of first objects is reduced to obtain a plurality of reduced first objects.
15. The method according to any one of claims 12 to 14, characterized in that, The first or second area also displays a third object, the third object including the taskbar, and the method further includes: The first area is controlled to display a portion of the third object, and the second area is controlled to display another portion of the third object.
16. The method according to any one of claims 12 to 15, characterized in that, The first area displays a portion of the fourth object, and the second area displays another portion of the fourth object, the fourth object including a window generated by the user triggering an application or taskbar. The method further includes: If the center of the fourth object is located in the first region, the fourth object is displayed in the first region; If the center of the fourth object is located in the second region, the fourth object is displayed in the second region.
17. The method according to any one of claims 13 to 16, characterized in that, The first area displays a portion of the fourth object, and the second area displays another portion of the fourth object, the fourth object including a window generated by the user triggering an application or taskbar. The method further includes: If the size of a portion of the fourth object is greater than or equal to the size of another portion of the fourth object, the fourth object is displayed in the first area; If the size of a portion of the fourth object is smaller than the size of another portion of the fourth object, the fourth object is displayed in the second area.
18. The method according to claim 16 or 17, characterized in that, The method further includes: If the size of the fourth object is greater than or equal to the size of the adjusted first region, the size of the fourth object is reduced to obtain a reduced fourth object. Displaying the fourth object in the first area includes: The scaled-down fourth object is displayed in the first area.
19. The method according to any one of claims 12 to 17, characterized in that, A fifth object is displayed on the side of the first region furthest from the third region, and a sixth object is displayed on the side of the second region furthest from the third region. The fifth and sixth objects include a status bar. The method further includes: The first area is controlled to display a portion of the fifth object and a portion of the sixth object, and the second area is controlled to display another portion of the fifth object and another portion of the sixth object.
20. The method according to any one of claims 12 to 19, characterized in that, The method further includes: Receive the user's drag operation on the display screen, the drag being used to move one of the plurality of first objects; In response to the drag operation, detect whether the first object has moved from the first area to the third area; If the first object moves from the first region to the third region, the first object is displayed in the second region.
21. A display control device, characterized in that, The device is disposed in an electronic device, the display screen of the electronic device includes a first area, a second area, and a third area, the third area being located between the first area and the second area, and the first area and the second area being foldable or unfoldable through the third area, the device comprising: The acquisition module is used to receive a user's target operation on the display screen, the target operation being used to change the angle between the first area and the second area; The first adjustment module is used to adjust the size of the first region, the size of the second region, and the size of the third region based on the target operation, so as to obtain the adjusted first region, the adjusted second region, and the adjusted third region. The second adjustment module is used to adjust the content displayed in the adjusted first area and the content displayed in the adjusted second area based on the size of the adjusted third area, so that the adjusted first area displays the adjusted content and the adjusted second area displays the adjusted content.
22. A display control device, characterized in that, The device is disposed in an electronic device, the display screen of the electronic device includes a first area, a second area, and a third area, the third area being located between the first area and the second area, the first area and the second area being foldable or unfoldable via the third area, the first area displaying a plurality of first objects, and the second area displaying a plurality of second objects, the device comprising: A receiving module is used to receive rotation operations from the user on the electronic device, the rotation operations being used to control the electronic device to rotate by a target angle; The detection module is used to detect whether the target angle is greater than or equal to a preset second threshold in response to the rotation operation; An adjustment module is used to adjust the order of the plurality of first objects in the first region if the target angle is greater than or equal to the second threshold, so as to control the first region to display the adjusted plurality of first objects, and to adjust the order of the plurality of second objects in the second region, so as to control the second region to display the adjusted plurality of second objects.
23. An electronic device, characterized in that, The electronic device includes a memory and a processor; the memory stores code, and the processor is configured to execute the code, wherein when the code is executed, the electronic device performs the method as described in any one of claims 1 to 20.
24. A computer storage medium, characterized in that, The computer storage medium stores one or more instructions, which, when executed by one or more computers, cause the one or more computers to perform the method of any one of claims 1 to 20.
25. A computer program product, characterized in that, The computer program product stores instructions that, when executed by a computer, cause the computer to perform the method described in any one of claims 1 to 20.
Citation Information
Patent Citations
Electronic device comprising multiple displays and method for operating same
CN109691073A
An electronic apparatus and an electronic apparatus control method
CN109814669A
Display processing method and device and computer storage medium
CN111880873A
Object display method and device, electronic equipment and computer readable storage medium
CN113296674A
Foldable electronic device
CN114285924A