Split-screen display methods, electronic devices and readable media
By introducing button mechanisms and posture detection into foldable electronic devices, the orientation of the split-screen display interface can be adjusted, solving the inconvenience caused by displaying in the same direction and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-11-30
- Publication Date
- 2026-05-26
AI Technical Summary
When foldable electronic devices are displayed in split-screen mode, the two screens are usually oriented in the same direction, requiring users to view them from the same side, which is inconvenient.
By introducing a button mechanism into foldable electronic devices, users or devices can automatically adjust the orientation of the split-screen display interface, such as by clicking a button or detecting changes in posture to rotate the split-screen display interface and achieve different orientations.
It allows users to easily adjust the orientation of the split-screen display, meeting the needs of different users to view or operate from different positions, thus improving the user experience.
Smart Images

Figure CN120104077B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a split-screen display method, electronic device, computer program product, and computer-readable storage medium. Background Technology
[0002] Foldable electronic devices can use a split-screen display, where one screen displays one interface and the other screen displays another interface.
[0003] In scenarios where foldable electronic devices use split-screen displays, the two split-screen interfaces are usually oriented in the same direction, requiring users to view both interfaces from the same side, which is inconvenient for them. Summary of the Invention
[0004] This application provides a split-screen display method, an electronic device, a computer program product, and a computer-readable storage medium, with the aim of adjusting the orientation of the interface displayed on the split screen.
[0005] To achieve the above objectives, this application provides the following technical solution:
[0006] In a first aspect, this application provides a split-screen display method, comprising: a foldable electronic device displaying a first interface in a first split-screen and a second interface in a second split-screen, wherein the first interface and the second interface also display a first button, and the first interface and the second interface are displayed in a first orientation; in response to a user's click operation on the first button, the foldable electronic device adjusts the second interface displayed in the second split-screen to a second orientation, the second orientation being different from the first orientation.
[0007] As can be seen from the above, when a user clicks the first button, the foldable electronic device can respond to the click operation of the first button and adjust the orientation of the second interface displayed in the second split screen, thus realizing the adjustment of the orientation of the interface displayed in the split screen.
[0008] In one possible implementation, the first button includes two buttons, one displayed on a first interface and the other on a second interface. In response to a user's click on the first button, the foldable electronic device adjusts to a second orientation on the second interface displayed in the second split-screen mode. This includes: in response to a user's click on the first button displayed on the second interface, the foldable electronic device adjusts to a second orientation on the second interface displayed in the second split-screen mode.
[0009] In the above possible implementations, the first button displayed on the first interface can adjust the display direction of the first interface, and the first button displayed on the second interface can adjust the display direction of the second interface.
[0010] In one possible implementation, the first button includes two buttons, and the connection area between the first interface and the second interface displays the two first buttons.
[0011] In one possible implementation, the device further includes: the foldable electronic device displays a first interface on a first split screen and a second interface on a second split screen, with a second button displayed in the connecting area between the first and second interfaces; the foldable electronic device displays a first interface on a first split screen and a second interface on a second split screen, with the first and second interfaces also displaying the first button, including: in response to a user's click operation on the second button, the foldable electronic device displays the first interface on a first split screen and the second interface on a second split screen, with the first and second interfaces also displaying the first button.
[0012] In the above possible implementation, the second button is the display entry point of the first button for adjusting the display direction of the first interface or the second interface. When the user clicks the second button, the foldable electronic device responds to the click operation of the second button and can display the first interface in the first split screen and the second interface in the second split screen. The first interface and the second interface also display the first button.
[0013] In one possible implementation, in response to a user's click on the first button, during the process of adjusting the second interface of the second split-screen display to a second orientation, the foldable electronic device further includes: displaying the second button in the connection area between the first interface and the second interface, and not displaying the first button.
[0014] In one possible implementation, the second direction is the opposite of the first direction.
[0015] In one possible implementation, the foldable electronic device displays a first interface in a first split-screen and a second interface in a second split-screen. The first and second interfaces also display a first button. The implementation includes: the foldable electronic device creating a first display area and a second display area, the first display area corresponding to the first split-screen and the second display area corresponding to the second split-screen; the foldable electronic device controlling the windows of the first and second display areas to display in a first direction, and displaying the first button in both the first and second display areas; the window in the first display area being used to display the first interface, and the window in the second display area being used to display the second interface; in response to a user clicking the first button, the foldable electronic device adjusting the second interface displayed in the second split-screen to a second direction, including: in response to a user clicking the first button, the foldable electronic device setting the direction of the second display area to a second direction, and controlling the windows of the second display area to display in the second direction.
[0016] Secondly, this application provides a split-screen display method, including: the display screen of a foldable electronic device is in a first posture; the display screen of the foldable electronic device is adjusted from the first posture to a second posture, and when the display screen in the second posture is divided into a first split screen displaying a first interface and a second split screen displaying a second interface, the direction of the first interface is a first direction, the direction of the second interface is a second direction, and the second direction is different from the first direction.
[0017] As can be seen from the above, the display screen of the foldable electronic device changes from the first posture to the second posture. The display screen is divided into a first screen that displays the first interface and a second screen that displays the second interface. The first interface displayed on the first screen is in the first direction, and the second interface displayed on the second screen is in the second direction, thus realizing the adjustment of the orientation of the interface displayed on the split screen.
[0018] In one possible implementation, the display screen of the foldable electronic device is in a first posture, including: the display screen of the foldable electronic device is in an unfolded state, and the display screen is divided into a first split screen displaying a first interface and a second split screen displaying a second interface; the display screen of the foldable electronic device is adjusted from the first posture to a second posture, including: the display screen of the foldable electronic device is adjusted from the unfolded state to a semi-folded state.
[0019] In one possible implementation, the foldable electronic device is an electronic device with a display screen that folds outwards.
[0020] In the above possible implementation, the display screen of the foldable electronic device is in an unfolded state and displays a first interface and a second interface in a split screen. The first interface and the second interface have the same orientation. The display screen of the foldable electronic device is adjusted to a semi-folded state and can be placed on a desktop in the form of a calendar. The foldable electronic device can automatically adjust the second interface displayed in the second split screen to the second orientation, so that two users can view and operate the two split screens face to face.
[0021] In one possible implementation, when the display screen of the foldable electronic device is adjusted from a first posture to a second posture, and the display screen in the first posture is divided into a first split screen displaying a first interface and a second split screen displaying a second interface, the direction of the first interface is a first direction and the direction of the second interface is a second direction, the implementation includes: when the display screen of the foldable electronic device is adjusted from the first posture to the second posture, setting a first display area to the first direction and a second display area to the second direction, the first display area corresponding to the first split screen and the second display area corresponding to the second split screen; the foldable electronic device controls the window of the first display area to be displayed in the first direction and the window of the second display area to be displayed in the second direction, the window of the first display area is used to display the first interface and the window of the second display area is used to display the second interface.
[0022] In a second aspect, this application provides an electronic device, including: one or more processors, a memory, and a display screen; the memory and the display screen are coupled to one or more processors, the memory is used to store a computer program, the computer program includes computer instructions, and when one or more processors execute the computer instructions, the electronic device performs a split-screen display method as provided in any one of the first aspects and its embodiments, or performs a split-screen display method as provided in any one of the second aspects and its embodiments.
[0023] Thirdly, this application provides a computer-readable storage medium for storing a computer program, which, when executed, is specifically used to implement the split-screen display method provided by any one of the first aspect and its embodiments, or to implement the split-screen display method provided by any one of the second aspect and its embodiments.
[0024] Fourthly, this application provides a computer program product that, when run on a computer, causes the computer to execute the split-screen display method provided by any one of the first aspects and its embodiments, or to execute the split-screen display method provided by any one of the second aspects and its embodiments. Attached Figure Description
[0025] Figures 1 to 3 Interface illustrations for three application scenarios of adjusting the display direction of the right split screen of the foldable electronic device provided in the embodiments of this application;
[0026] Figure 4 and Figure 5 Interface illustrations for two application scenarios of adjusting the display direction of the upper split screen of the foldable electronic device provided in the embodiments of this application;
[0027] Figure 6 Another interface illustration showing the adjustment of the right split-screen display direction of the foldable electronic device provided in this application embodiment;
[0028] Figure 7 Another interface illustration showing the adjustment of the display orientation of the upper split screen of the foldable electronic device provided in the embodiments of this application;
[0029] Figure 8 A hardware structure diagram of the electronic device provided in the embodiments of this application;
[0030] Figure 9 A software structure diagram of the electronic device provided in the embodiments of this application;
[0031] Figure 10 A flowchart illustrating the split-screen display method provided in this application embodiment;
[0032] Figure 11Another flowchart of the split-screen display method provided in the embodiments of this application. Detailed Implementation
[0033] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "an," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise.
[0034] References to "some embodiments" and similar terms described in this specification mean that one or more embodiments of this application include specific features, structures, or characteristics described in connection with that embodiment. Therefore, phrases appearing in different parts of this specification, such as "in some embodiments," "in other embodiments," etc., do not necessarily refer to the same embodiments, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0035] The "multiple" mentioned in the embodiments of this application refers to two or more. It should be noted that in the description of the embodiments of this application, terms such as "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.
[0036] Foldable electronic devices can be categorized as outward-folding or inward-folding electronic devices depending on their folding direction. Typically, an outward-folding electronic device includes an outward-folding display screen that can be folded to form a first screen and a second screen. An inward-folding electronic device also includes an inward-folding display screen that can be folded to form a first screen and a second screen. In some embodiments, the inward-folding electronic device further includes a third screen that is visible to the user when the electronic device is in the folded state.
[0037] In some application scenarios, foldable electronic devices in their unfolded or semi-folded states can use a display screen for split-screen display. That is, one split screen displays one interface, and the other displays another interface. The two interfaces can be interfaces of different applications or different task interfaces of the same application. In some embodiments, the split screen can refer to the first or second screen formed after folding (referred to as left and right split screens), or it can refer to different display areas after the display screen is divided vertically along the folding direction (referred to as top and bottom split screens).
[0038] In scenarios where foldable electronic devices use split-screen displays, the two split-screen interfaces are typically oriented in the same direction, requiring the user to view both interfaces from the same side. In some applications, different users may view different split-screen interfaces or input operations on different split-screen interfaces. To facilitate viewing or operation from different positions, the display orientation of the split-screen interfaces can be adjusted. For example, it can be rotated 90°, 180°, etc. Of course, foldable electronic devices are those that fold outwards, standing upright on a table in a semi-folded state, with different orientations for the different split-screen interfaces, making them even more convenient for users.
[0039] The following examples illustrate the use of an electronic device with an outward-folding display screen in an unfolded state, where the split screen can be adjusted 180°.
[0040] Figures 1 to 3 This demonstrates three application scenarios for adjusting the display direction of the right split screen on a foldable electronic device. The foldable electronic device uses a left-right split screen to display the interface of the same or different applications. These applications can be various; for example, they can refer to text-based applications such as PowerPoint, document, and conferencing applications, video applications that can play videos, instant messaging applications, and games.
[0041] For example, Figure 1 The middle (a) section shows the interface 101 of an instant messaging application displayed on the left split screen, and the interface 102 of a text-based application displayed on the right split screen. A button 103 is displayed at the junction of the left and right split screens, and the button 103 is used to display multiple operable items.
[0042] When a user clicks button 103, the electronic device responds to the user's click action, such as... Figure 1 As shown in (b), three operable items are displayed: the split-screen button 104, the left screen orientation switch button 105, and the right screen orientation switch button 106. The split-screen button 104 is used to control the electronic device to split the screen vertically, the left screen orientation switch button 105 is used to adjust the display orientation of the left screen, and the right screen orientation switch button 106 is used to adjust the display orientation of the right screen.
[0043] When a user clicks the right-side directional button 106, the electronic device responds to the user's click, such as... Figure 1 As shown in (c), the interface displayed on the right split screen is adjusted 180° clockwise before being displayed.
[0044] For example, Figure 2 (a) shows the video playback interface 201 displayed on the left split screen, and the instant messaging application interface 202 displayed on the right split screen. A button 103 is displayed at the junction of the left and right split screens. When the user clicks button 103, the electronic device responds to the user's click operation, such as... Figure 2 As shown in (b), buttons for splitting the screen vertically, switching the left screen direction, and switching the right screen direction are displayed 106. When the user clicks the right screen direction switching button 106, the electronic device responds to the user's click operation, as follows: Figure 2 As shown in (c), the interface displayed on the right split screen is adjusted 180° clockwise before being displayed.
[0045] For example, Figure 3 The left split screen (a) shows the video playback interface 301, and the right split screen shows the game interface 302. A button 103 is displayed at the junction of the left and right split screens. When the user clicks button 103, the electronic device responds to the user's click operation, such as... Figure 3 As shown in (b), buttons for splitting the screen vertically, switching the left screen direction, and switching the right screen direction are displayed 106. When the user clicks the right screen direction switching button 106, the electronic device responds to the user's click operation, as follows: Figure 3 As shown in (c), the interface displayed on the right split screen is adjusted 180° clockwise before being displayed.
[0046] Figure 4 and Figure 5 This demonstrates two application scenarios where the display orientation of the upper split screen of a foldable electronic device can be adjusted. The foldable electronic device uses a split screen to display the interface of the same or different applications.
[0047] For example, Figure 4 The upper split screen (a) displays the interface 401 of an instant messaging application, while the lower split screen displays the interface 402 of a text-based application. A button 103 is displayed at the connection point between the upper and lower split screens. When the user clicks button 103, the electronic device responds to the user's click action, such as... Figure 4 As shown in (b), the left / right split-screen button 403, the top screen orientation switch button 404, and the bottom screen orientation switch button 405 are displayed. When the user clicks the top screen orientation switch button 404, the electronic device responds to the user's click operation, as follows: Figure 4 As shown in (c), the interface displayed on the upper split screen is adjusted 180° clockwise before being displayed.
[0048] For example, Figure 5 (a) Displays the playback interface 501 of the first video on the upper split screen and the playback interface 502 of the second video on the lower split screen. A button 103 is displayed at the connection point between the upper and lower split screens. When the user clicks button 103, the electronic device responds to the user's click operation, such as... Figure 5 As shown in (b), the left and right split-screen buttons, the top screen orientation switch button 404, and the bottom screen orientation switch button are displayed. When the user clicks the top screen orientation switch button 404, the electronic device responds to the user's click operation, as follows: Figure 5 As shown in (c), the interface displayed on the upper split screen is adjusted 180° clockwise before being displayed.
[0049] Figures 1 to 5 In application scenarios, foldable electronic devices display buttons to switch the orientation of a specific split-screen view, controlling the default angle of the interface displayed in that split-screen mode. Figures 1 to 5 The image shows an adjustment of 180° clockwise. However, the way an electronic device controls the orientation of a split-screen display is not limited to this. In some embodiments, the electronic device may also display multiple options for adjusting the angle of the split-screen display interface for the user to choose from. For example, when a user clicks a button to switch a split-screen orientation, the electronic device may display a submenu that may include different rotation angles, such as 45°, 90°, and 180° clockwise. The user can select the corresponding rotation angle according to their needs to control the display orientation of the split-screen interface.
[0050] After the display orientation of a split-screen interface on a foldable electronic device is adjusted, the user can also input an operation to restore the split-screen interface. For example, if the user clicks button 103 and then clicks the button to switch the split-screen orientation, the electronic device can restore the split-screen interface with the adjusted orientation to its original display orientation.
[0051] Figure 6 This demonstrates another way for users to adjust the display orientation of a split screen on a foldable electronic device. For example, such as... Figure 6 As shown in (a), the foldable electronic device displays an instant messaging application interface 101 on the left split screen and a text application interface 102 on the right split screen. Buttons 107 are displayed at the top of both the left and right split screens. Buttons 107 are used to adjust the display orientation of the split screens.
[0052] In some embodiments, when a user clicks button 107 displayed on the right split screen 102, the electronic device responds to the user's click operation, such as... Figure 1 As shown in (c), the interface displayed in the right split screen is adjusted 180° clockwise before being displayed. The user clicks... Figure 1 As shown in (c), button 107 on the right split screen, in response to the user's click, restores the interface displayed on the right split screen, such as... Figure 6 As shown in (a).
[0053] In other embodiments, when a user clicks button 107 displayed on the right split screen 102, the electronic device responds to the user's click by adjusting the interface displayed on the right split screen by 90° clockwise. If the user clicks button 107 again on the adjusted right split screen, the electronic device responds to the user's click by adjusting the interface displayed on the right split screen by another 90° clockwise. If the user continues to click button 107 on the adjusted right split screen, the electronic device responds to the user's click by restoring the interface displayed on the right split screen, as shown below. Figure 6 As shown in (a).
[0054] In other embodiments, when a user clicks button 107 to switch a split-screen orientation, the electronic device can also display a submenu. This submenu may include different rotation angles, such as 45°, 90°, 180°, etc., rotating clockwise. The user can select the corresponding rotation angle according to their needs to control the split-screen display interface to adjust the display orientation.
[0055] Figures 1 to 6 This demonstrates how user input adjusts the orientation of a split screen. In some embodiments, the foldable electronic device can also automatically adjust the orientation of the split screen. The foldable electronic device can be configured to automatically adjust the orientation of the split screen when it is in a specific posture, which may include a semi-folded state and an unfolded state.
[0056] In some embodiments, the display screen of the foldable electronic device is in an unfolded state, and the display screen shows the interface of the same or different applications in a split screen. When the user adjusts the foldable electronic device to a semi-folded state, the foldable electronic device can automatically adjust the orientation of a certain split screen.
[0057] For example, Figure 7 (a) shows a foldable electronic device in its unfolded state, with its display screen showing different videos in a split-screen configuration: the upper screen shows the first video, and the lower screen shows the second video. To facilitate two users watching the two videos face-to-face, the foldable electronic device is adjusted from its unfolded state to a semi-folded state, as shown in Figure (a). Figure 7 As shown in (b) and (c), the video interface displayed on the upper split screen of the foldable electronic device automatically rotates 180° clockwise.
[0058] In other embodiments, when the display screen of the foldable electronic device is adjusted from a folded state to an unfolded state, and the display screen is controlled to display the interface of the same or different applications in a split screen, the foldable electronic device automatically rotates one of the split screen interfaces 180° clockwise before displaying it.
[0059] Foldable electronic devices can also automatically adjust the interface of a split-screen display to rotate clockwise by 45°, 90°, or other angles.
[0060] As can be seen from the above, in scenarios where foldable electronic devices display split screens, the orientation of the split-screen interface can be adjusted for user convenience.
[0061] Foldable electronic devices can include mobile phones, tablets, personal digital assistants (PDAs), desktop, laptop, and notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, and wearable devices, all featuring a foldable display screen.
[0062] Taking foldable screen phones as an example, Figure 8 This is an example of the composition of an electronic device provided in an embodiment of this application. For example... Figure 8 As shown, the electronic device 100 may include a processor 110, an internal memory 120, a camera 130, a display screen 140, and a sensor module 150, etc.
[0063] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0064] Processor 110 may include one or more processing units. For example, processor 110 may include an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), a video codec, etc.
[0065] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
[0066] Internal memory 120 can be used to store computer executable program code, including instructions. In some embodiments, internal memory 120 stores instructions for executing a split-screen display method. Processor 110 can execute instructions stored in internal memory 120 to implement split-screen display data and adjust the orientation of the split-screen display windows.
[0067] The electronic device 100 can perform shooting functions through an ISP, camera 130, video codec, GPU, display screen 140, and application processor. The electronic device 100 can also perform display functions through a GPU, display screen 140, and application processor.
[0068] Display screen 140 is used to display images, videos, etc. Display screen 140 includes a display panel. In some embodiments, an electronic device may include one or N displays screens 140, where N is a positive integer greater than 1. Display screen 140 is a foldable display screen.
[0069] In sensor module 150, pressure sensor 150A is used to sense pressure signals and convert them into electrical signals. Touch sensor 150B, also known as a "touch device," can be placed on display screen 140. Touch sensor 150B and display screen 140 together form a touchscreen, also known as a "touch screen." Touch sensor 150B is used to detect touch operations applied to or near it. Accelerometer 180C can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. Hinge angle sensor 180D can detect the folding angle of the display screen of electronic device 100.
[0070] In addition, an operating system runs on top of the aforementioned components. The operating system of an electronic device can be layered. Figure 9 The software architecture diagram of the electronic device is shown. For example... Figure 9 As shown, the operating system of an electronic device is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0071] The application layer can include a series of application packages. For example... Figure 9 As shown, the application package can include text applications, instant messaging applications, and video applications, etc.
[0072] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. For example... Figure 9As shown, the application framework layer may include a window management service (WindowManagerService, WMS) and a posture recognition module. The window management service is used to manage windows, and the posture recognition module can identify the posture of the electronic device based on sensor detection data. The posture may include: folded state, unfolded state, and half-folded state. The half-folded state of an electronic device that folds outward can also be called calendar form or tent form. The half-folded state of an electronic device that folds inward can also be called notebook form or book form.
[0073] The kernel layer is the layer between hardware and software. The kernel layer contains sensor drivers, which can drive… Figure 8 The sensor in operation can be demonstrated and its detection data can be reported to the upper-level module.
[0074] The following describes the split-screen display method provided in this application embodiment, in conjunction with the posture recognition module and window management service.
[0075] Figure 10 This application demonstrates a split-screen display method provided by an embodiment of the present application. When a foldable electronic device executes this split-screen display method, it can automatically adjust the display direction of the split screen based on the device's posture.
[0076] like Figure 10 As shown, the split-screen display method provided in this application includes the following steps:
[0077] S101, The sensor driver receives the detection data reported by the acceleration sensor and the hinge angle sensor.
[0078] In some embodiments, the accelerometer and hinge angle sensor can operate periodically to collect detection data. The accelerometer and hinge angle sensor can then report the collected detection data to the sensor driver.
[0079] S102, The sensor driver reports the detection data from the accelerometer and hinge angle sensor to the attitude recognition module.
[0080] After receiving the detection data from the accelerometer and hinge angle sensor, the sensor driver can report the detection data to the attitude recognition module.
[0081] S103. The posture recognition module obtains the posture of the electronic device based on the detection data.
[0082] The window management module cannot recognize the detection data from the accelerometer and hinge angle sensor. Therefore, the attitude recognition module obtains the attitude of the electronic device in a data format that the window management module can recognize based on the detection data. The attitude of the electronic device is also called the attitude information of the electronic device, which usually refers to the attitude of the electronic device's display screen, including folded, unfolded, and semi-folded states.
[0083] The specific implementation method of the posture recognition module to obtain the posture of the electronic device based on the detection data can be found in conventional technology, and will not be described in detail here.
[0084] In some embodiments, the window management module has the ability to recognize the detection data of the accelerometer and the hinge angle sensor. The sensor driver can also directly report the detection data to the window management module, and the window management module obtains the attitude of the electronic device based on the detection data.
[0085] S104. The posture recognition module reports the posture of the electronic device to the window management service.
[0086] The window management service is used to manage windows, so the posture recognition module reports the posture of the electronic device to the window management service.
[0087] In some embodiments, the accelerometer and hinge angle sensor can operate periodically, and the obtained detection data can be sent to the attitude recognition module via sensor drive. The attitude recognition module obtains the attitude of the electronic device based on the detection data of each sensor drive and reports the attitude of the electronic device to the window management service. Based on this, the window management service can obtain the attitude of the electronic device at different times.
[0088] S105, The window management service creates a first display area and a second display area based on the posture of the electronic device.
[0089] The window management service determines the electronic device's orientation—whether the display is unfolded or semi-folded—and creates a first display area and a second display area. Of course, before creating the first and second display areas based on the electronic device's orientation, the window management service can also determine if the foldable electronic device will enter a split-screen display scenario, i.e., displaying the interfaces of two applications on two separate screens. These two applications may be the same or different applications; it's understandable that the desktop is also considered an application.
[0090] The window management service creates a first display area and a second display area, corresponding to the two split screens of the display screen, which are used to display the interfaces of the two applications respectively.
[0091] S106. The window management service sets the direction of the first display area to the first direction and the direction of the second display area to the second direction.
[0092] The window management service creates a first display area and a second display area, each with a configurable orientation. The orientation of the first display area determines the orientation of the application's interface displayed there, and similarly, the orientation of the second display area determines the orientation of the application's interface displayed there.
[0093] In some embodiments, the window management service determines that the electronic device's posture is either an unfolded or semi-folded display, and determines that the foldable electronic device has entered a split-screen display scenario. The window management service can then set the direction of the first display area to a first direction and the direction of the second display area to a second direction, with the first and second directions being different directions. In some embodiments, the first and second directions are opposite to each other, and the second direction can be the direction after rotating the first direction 108° clockwise.
[0094] In other embodiments, when the window management service determines that the posture of the electronic device changes from an unfolded state to a semi-folded state, and determines that the foldable electronic device enters a split-screen display scenario, the window management service can set the direction of the first display area to a first direction, the direction of the second display area to a second direction, and the first direction and the second direction to be different directions.
[0095] S107. The window management service controls the windows in the first display area to be displayed in the first direction, and controls the windows in the second display area to be displayed in the second direction.
[0096] The window in the first display area can refer to the interface of the application displayed in the first display area, and the window in the second display area can refer to the interface of the application displayed in the second display area. The first direction and the second direction are different, which realizes that the interfaces of the application displayed in the first display area and the interfaces of the application displayed in the second display area are oriented differently.
[0097] Combination Figure 7 As shown, the first display area corresponds to the lower split screen, and the second display area corresponds to the upper split screen. The window management service determines that the electronic device's posture changes from an unfolded state to a semi-folded state, and determines that the foldable electronic device enters the split-screen display scene. The window management service sets the direction of the first display area to a first direction and the direction of the second display area to a second direction. The first and second directions are opposite to each other. Based on this, the window management service controls the windows in the first display area to display according to the first direction and controls the windows in the second display area to display according to the second direction, thus achieving... Figure 7 The display methods shown in (b) and (c) are as follows.
[0098] Figure 11 This application demonstrates a split-screen display method provided by an embodiment of the present application. When a foldable electronic device executes this split-screen display method, it can adjust the display orientation of the split screen based on user operations.
[0099] like Figure 11 As shown, the split-screen display method provided in this application includes the following steps:
[0100] S201, The sensor driver receives the detection data reported by the acceleration sensor and the hinge angle sensor.
[0101] S202, The sensor driver reports the detection data from the accelerometer and hinge angle sensor to the attitude recognition module.
[0102] S203. The posture recognition module obtains the posture of the electronic device based on the detection data.
[0103] S204. The posture recognition module reports the posture of the electronic device to the window management service.
[0104] The implementation methods for steps S201 to S204 can be found in [reference needed]. Figure 10 The contents of steps S101 to S104 in the corresponding embodiments will not be repeated here.
[0105] S205. The window management service determines the posture of the electronic device as either an unfolded or semi-folded display screen, and creates a first display area and a second display area.
[0106] Before creating the first and second display areas, the window management service also determines whether the foldable electronic device is entering a split-screen display scenario. The window management service configures the orientation of both the first and second display areas to be the default orientation; normally, the default orientation indicates that the first and second display areas are oriented in the same direction.
[0107] S206. The window management service controls the windows in the first display area and the second display area to be displayed in the default orientation, and displays the first button in the first display area and the second display area.
[0108] The window in the first display area refers to the interface of the application displayed in the first display area, and the window in the second display area refers to the interface of the application displayed in the second display area. The interfaces of the applications displayed in the first and second display areas are displayed in the same direction by default. To allow users to manually adjust the orientation of the windows in the first or second display areas, the window management service displays a first button in both the first and second display areas while controlling the windows in the first and second display areas to be displayed in the default orientation.
[0109] Combination Figures 1 to 5 The scenario shown has one split screen corresponding to the first display area and another split screen corresponding to the second display area. The first button refers to button 103, which allows the user to adjust the orientation of the window in the first display area or the window in the second display area.
[0110] S207. The window management service responds to the user's button click operation by displaying a second button and a third button in the first display area and the second display area.
[0111] When a user clicks the first button, the collapsible electronic device receives the click and sends it as an event to the window management service. Upon receiving the event, the window management service can respond by displaying a second button and a third button in the first and second display areas. The second button is used to adjust the orientation of the first display area, and the third button is used to adjust the orientation of the second display area.
[0112] Combination Figures 1 to 3 In the demonstrated scenario, the second button refers to the left-side directional button 105, and the third button refers to the right-side directional button 106; combined with Figure 4 and Figure 5 In the scenario shown, the second button refers to the button 405 for switching the direction of the lower screen, and the third button refers to the button 404 for switching the direction of the upper screen.
[0113] S208. The window management service responds to the user's click on the third button and sets the direction of the second display area to the first direction.
[0114] If the user wants to adjust the orientation of the second display area, the user clicks the third button. The foldable electronic device receives the user's click operation and can also send the click operation as an event to the window management service. The window management service receives the event and can respond to the event by setting the orientation of the second display area to the first orientation. The first orientation can be the opposite of the default orientation or an orientation that is not 180° rotated from the default orientation.
[0115] Of course, if the user wants to adjust the orientation of the first display area, the user can click the second button. The foldable electronic device receives the user's click operation and can also send the click operation as an event to the window management service. The window management service receives the event and can respond to the event by setting the orientation of the first display area to the first direction.
[0116] S209. The window management service controls the windows in the second display area to be displayed in the first direction.
[0117] Combination Figures 1 to 3 In the demonstrated scenario, the first display area corresponds to the left split screen, and the second display area corresponds to the right split screen. When the user clicks the third button (button 106), the direction of the right screen is switched. The window management service sets the direction of the second display area to the first direction, which can be the opposite of the default direction. Furthermore, the window management service controls the windows in the second display area to display according to the first direction, thus achieving... Figure 1 (c) Figure 2 (c) and Figure 3 As shown in (c), the interface of the application displayed in the right split screen is rotated 180° from its original orientation.
[0118] Combination Figure 4 and Figure 5 In the demonstrated scenario, the first display area corresponds to the lower split screen, and the second display area corresponds to the upper split screen. When the user clicks the third button (button 404), the orientation of the upper screen is switched. The window management service sets the orientation of the second display area to the first orientation, which can be the opposite of the default orientation. Furthermore, the window management service controls the windows in the second display area to display according to the first orientation, thus achieving... Figure 4 (c) and Figure 5 As shown in (c), the interface of the application displayed on the top split screen is rotated 180° from its original orientation before being displayed.
[0119] In some embodiments, the electronic device displays multiple options for adjusting the angle of the split-screen display interface. For example, when a user clicks a button to switch a specific split-screen orientation, the electronic device may also display a submenu. This submenu may include different rotation angles, such as 45°, 90°, and 180° clockwise. The user can select the corresponding rotation angle according to their needs to control the adjustment of the display orientation of the split-screen interface. Taking a third button as an example, after the window management service executes step S207, it can respond to the user's click of the third button by displaying a submenu in the first and second display areas. After the user selects a rotation angle from the submenu, the window management service responds to the user's selection by setting the orientation of the second display area to a specific direction, which is the orientation after rotating the user-selected rotation angle from the default orientation.
[0120] Another embodiment of this application provides a computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform one or more steps of any of the above methods.
[0121] Computer-readable storage media can be non-transitory computer-readable storage media, such as read-only memory (ROM), random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage devices.
[0122] Another embodiment of this application provides a computer program product containing instructions. When the computer program product is run on a computer or processor, it causes the computer or processor to perform one or more steps of any of the methods described above.
Claims
1. A split-screen display method, characterized in that, include: The foldable electronic device displays a first interface on a first split screen and a second interface on a second split screen. The connecting area between the first and second interfaces also displays two first buttons, or the first interface displays the first of the two first buttons and the second interface displays the second of the two first buttons. The first and second interfaces are displayed in a first orientation. The first of the two first buttons is used to adjust the display orientation of the first split screen, and the second first button is used to adjust the display orientation of the second split screen. In response to the user's click operation on the second first button, the foldable electronic device adjusts to a second orientation on the second interface of the second split-screen display, which is different from the first orientation; After the second interface of the second split-screen display is adjusted to the second orientation, in response to the user's click operation on the second first button again, the foldable electronic device returns to the first orientation from the second orientation on the second interface of the second split-screen display.
2. The split-screen display method according to claim 1, characterized in that, Also includes: The foldable electronic device displays the first interface on the first split screen and the second interface on the second split screen, with a second button displayed in the connecting area between the first interface and the second interface; The foldable electronic device displays a first interface in a first split-screen display and a second interface in a second split-screen display. The connecting area between the first and second interfaces also displays two first buttons, including: In response to a user's click on the second button, the foldable electronic device displays a first interface in a first split screen and a second interface in a second split screen. Two first buttons are also displayed in the connecting area between the first interface and the second interface.
3. The split-screen display method according to claim 2, characterized in that, In response to a user's click on the second first button, during the process of adjusting the second interface of the second split-screen display to the second orientation, the foldable electronic device further includes: The foldable electronic device displays the second button in the connection area between the first interface and the second interface, but does not display the first button.
4. The split-screen display method according to any one of claims 1 to 3, characterized in that, The second direction is the opposite of the first direction.
5. The split-screen display method according to claim 1, characterized in that, The foldable electronic device displays a first interface in a first split-screen display and a second interface in a second split-screen display. The connecting area between the first and second interfaces also displays two first buttons, including: The foldable electronic device creates a first display area and a second display area, the first display area corresponding to the first split screen and the second display area corresponding to the second split screen; The foldable electronic device controls the windows of the first display area and the second display area to be displayed in the first direction, and displays two of the first buttons in the connecting area between the first display area and the second display area; the window of the first display area is used to display the first interface, and the window of the second display area is used to display the second interface; In response to a user's click on the second first button, the foldable electronic device adjusts to a second orientation on the second interface of the second split-screen display, including: In response to a user's click on the second first button, the foldable electronic device sets the orientation of the second display area to the second direction and controls the window of the second display area to be displayed in the second direction.
6. A split-screen display method, characterized in that, include: The display screen of the electronic device is in an unfolded state when it is folded outwards. The display screen is divided into a first screen that displays a first interface and a second screen that displays a second interface. When the display screen of the electronic device is adjusted from the unfolded state to the semi-folded state, and the display screen in the semi-folded state is divided into a first screen displaying a first interface and a second screen displaying a second interface, the direction of the first interface is a first direction, the direction of the second interface is a second direction, the second direction is different from the first direction, and the first direction is the direction of the first interface displayed on the display screen in the unfolded state after rotating 180° clockwise.
7. The split-screen display method according to claim 6, characterized in that, When the display screen of the electronic device is adjusted from the unfolded state to a semi-folded state, and the display screen in the semi-folded state is divided into a first screen displaying a first interface and a second screen displaying a second interface, the orientation of the first interface is a first direction, and the orientation of the second interface is a second direction, including: When the display screen of the electronic device is adjusted from the unfolded state to the semi-folded state, the first display area is set to the first direction, the second display area is set to the second direction, the first display area corresponds to the first split screen, and the second display area corresponds to the second split screen; The electronic device controls the window in the first display area to be displayed in the first direction, and the window in the second display area to be displayed in the second direction. The window in the first display area is used to display the first interface, and the window in the second display area is used to display the second interface.
8. An electronic device, characterized in that, include: One or more processors, memory, and a display screen; The memory and the display screen are coupled to the one or more processors. The memory is used to store a computer program, the computer program including computer instructions. When the one or more processors execute the computer instructions, the electronic device performs the split-screen display method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that, Used to store computer programs, which, when executed, are specifically used to implement the split-screen display method as described in any one of claims 1 to 7.