Split-screen display method, electronic equipment and readable medium

Through user operation, adjusting the interface direction of the second split screen display, the problem of the same direction of the interface when the split screen display of foldable electronic devices is solved, and flexible adjustment of the interface direction is achieved, and the convenience of user operation is improved.

CN120104077AActive Publication Date: 2025-06-06HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311641209.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-06-06
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

When foldable electronic devices are displayed on split screen, the interfaces of the two split screens are usually in the same direction, and users need to watch on the same side, causing inconvenience.

Method used

A split-screen display method is provided, through the operation of the user clicking a button, the direction of the interface displayed in the second split-screen is adjusted so that it is different from the first direction.

Benefits of technology

The direction of the interface of the split-screen display of the display screen is realized, making it easier for users to view or operate two split-screens in different locations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104077A_ABST
    Figure CN120104077A_ABST
Patent Text Reader

Abstract

The invention provides a split-screen display method, electronic equipment and a readable medium, the split-screen display method comprises the steps that the foldable electronic equipment displays a first interface on a first split screen and displays a second interface on a second split screen, the first interface and the second interface further display a first button, and the first interface and the second interface are displayed in a first direction; and in response to the click operation of the user on the first button, the foldable electronic equipment adjusts the second interface displayed on the second split screen to the second direction, and the second direction is different from the first direction, so that the direction of the interface displayed on the split screen of the display screen is adjusted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a split-screen display method, electronic equipment, computer program product, and computer-readable storage medium. Background Art

[0002] A foldable electronic device may use a split-screen display, that is, one split screen of the display screen displays one interface, and the other split screen displays another interface.

[0003] In the scenario where a foldable electronic device performs split-screen display, the two split-screen display interfaces are usually in the same direction, and the user needs to view the two split-screen display interfaces on the same side, causing inconvenience to the user. Summary of the invention

[0004] The present application provides a split-screen display method, an electronic device, a computer program product, and a computer-readable storage medium, the purpose of which is to adjust the direction of an interface displayed on a split-screen display.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] In a first aspect, the present application provides a split-screen display method, including: a foldable electronic device displays a first interface on a first split screen, and displays a second interface on a second split screen, 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 direction; in response to a user clicking the first button, the foldable electronic device adjusts the second interface displayed in the second split screen to a second direction, and the second direction is different from the first direction.

[0007] It can be seen from the above content that: when the user clicks the first button, the foldable electronic device can adjust the direction of the second interface displayed on the second split screen in response to the click operation of the first button, thereby realizing the adjustment of the direction of the interface displayed on the split screen of the display screen.

[0008] In one possible embodiment, the first button includes two, the first interface displays one first button, the second interface displays another first button, and in response to the user clicking the first button, the foldable electronic device adjusts the second interface displayed in the second split screen to the second direction, including: in response to the user clicking the first button displayed on the second interface, the foldable electronic device adjusts the second interface displayed in the second split screen to the second direction.

[0009] In the above possible implementation manner, 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 a possible implementation manner, the first buttons include two, and the connection area between the first interface and the second interface displays the two first buttons.

[0011] In a possible implementation, it also includes: the foldable electronic device displays the first interface on the first split screen, displays the second interface on the second split screen, and displays a second button in the connection area between the first interface and the second interface; the foldable electronic device displays the first interface on the first split screen, displays the second interface on the second split screen, and the first interface and the second interface also display the first button, including: in response to the user clicking the second button, the foldable electronic device displays the first interface on the first split screen, displays the second interface on the second split screen, and the first interface and the second interface also display the first button.

[0012] In the above possible implementation manner, the second button is a display entrance 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 on the first split screen and the second interface on the second split screen. The first interface and the second interface also display the first button.

[0013] In one possible embodiment, in response to the user clicking the first button, the process of the foldable electronic device adjusting the second interface displayed in the second split screen to the second direction also includes: the foldable electronic device displays the second button in the connection area between the first interface and the second interface, and does not display the first button.

[0014] In a possible implementation manner, the second direction is the opposite direction of the first direction.

[0015] In one possible embodiment, a foldable electronic device displays a first interface on a first split screen and a second interface on a second split screen, and the first interface and the second interface also display a first button, including: the foldable electronic device creates a first display area and a second display area, the first display area corresponds to the first split screen, and the second display area corresponds to the second split screen; the foldable electronic device controls the windows of the first display area and the windows of the second display area to be displayed in a first direction, and displays a first button in 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 clicking operation on the first button, the foldable electronic device adjusts the second interface displayed on the second split screen to a second direction, including: in response to a user clicking operation on the first button, the foldable electronic device sets the direction 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.

[0016] In a second aspect, the present application provides a split-screen display method, comprising: 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] From the above content, it can be seen that: the display screen of the foldable electronic device is adjusted from the first posture to the second posture, the display screen is divided into a first split screen displaying the first interface and a second split screen displaying the second interface, the first interface displayed by the first split screen is the first direction, and the second interface displayed by the second split screen is the second direction, thereby realizing the adjustment of the direction of the interface displayed on the split screen of the display screen.

[0018] In one possible embodiment, 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 the second posture, including: the display screen of the foldable electronic device is adjusted from the unfolded state to the semi-folded state.

[0019] In a possible implementation, the foldable electronic device is an electronic device with a display screen folded outward.

[0020] In the above possible implementation manner, the display screen of the foldable electronic device is in an unfolded state and displays a first interface and a second interface in split screen, the direction of the first interface is the same as the direction of the second interface, the display screen of the foldable electronic device is adjusted to a semi-folded state and can be placed on the desktop in the form of a desk calendar, and the foldable electronic device can automatically adjust the second interface displayed on the second split screen to the second direction, so that two users can watch and operate the two split screens face to face.

[0021] In one possible embodiment, the display screen of a foldable electronic device is adjusted from a first posture to a second posture, and when 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 the first direction, and the direction of the second interface is the second direction, including: when the display screen of the foldable electronic device is adjusted from the first posture to the second posture, 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 foldable electronic device controls the window of the first display area to be displayed in the first direction, 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, the present application provides an electronic device comprising: one or more processors, a 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 includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the split-screen display method provided in any one of the first aspect and its embodiments, or executes the split-screen display method provided in any one of the second aspect and its embodiments.

[0023] In a third aspect, the present application provides a computer-readable storage medium for storing a computer program. When the computer program is executed, it is specifically used to implement a split-screen display method as provided in any one of the first aspect and its embodiments, or to implement a split-screen display method as provided in any one of the second aspect and its embodiments.

[0024] In a fourth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the split-screen display method provided in the first aspect and any one of its embodiments, or execute the split-screen display method provided in the second aspect and any one of its embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figures 1 to 3 Interface display diagrams of three application scenarios for adjusting the display direction of the right split screen of a foldable electronic device provided in an embodiment of the present application;

[0026] Figure 4 and Figure 5 Interface display diagrams of two application scenarios for adjusting the display direction of the upper split screen of a foldable electronic device provided in an embodiment of the present application;

[0027] Figure 6 Another interface display diagram for adjusting the display direction of the right split screen of the foldable electronic device provided in an embodiment of the present application;

[0028] Figure 7 Another interface display diagram for adjusting the display direction of the upper split screen of the foldable electronic device provided in an embodiment of the present application;

[0029] Figure 8 A hardware structure diagram of an electronic device provided in an embodiment of the present application;

[0030] Fig. 9 A software structure diagram of an electronic device provided in an embodiment of the present application;

[0031] Fig.10 A flowchart of a split-screen display method provided in an embodiment of the present application;

[0032] Fig.11Another flow chart of the split-screen display method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear indication to the contrary in the context.

[0034] References to "some embodiments" and the like described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, phrases appearing in different places in this specification, "in some embodiments", "in other embodiments", etc., do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "include", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way.

[0035] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0036] The foldable electronic device can be an outward-folding electronic device or an inward-folding electronic device according to the folding direction. Generally, the outward-folding electronic device includes a display screen that can be folded outward, and the display screen can be folded to form a first screen and a second screen. The inward-folding electronic device also includes a display screen that can be folded inward, and the display screen can be folded to form a first screen and a second screen. In some embodiments, the inward-folding electronic device also includes a third screen, and when the electronic device is in a folded state, the third screen is visible to the user.

[0037] In some application scenarios, a foldable electronic device in an unfolded or semi-folded state may use a split-screen display, that is, one split screen of the display screen displays one interface, and the other split screen displays another interface. The two interfaces may be interfaces of different applications or different task interfaces of the same application. In some embodiments, the split screen of the display screen may refer to the first screen or the second screen formed after folding (referred to as the left and right split screens), or may refer to different display areas after the display screen is divided in the vertical direction of the folding direction (referred to as the upper and lower split screens).

[0038] In the scenario where a foldable electronic device performs a split-screen display, the two split-screen display interfaces are usually in the same direction, and the user needs to view the two split-screen display interfaces on the same side. In some application scenarios, different users view different split-screen display interfaces, or input operations on different split-screen display interfaces. In order to facilitate users to view or operate in different positions, the display direction of the split-screen display interface of the display screen can be adjusted. Exemplarily, it can be adjusted to rotate 90°, 180°, etc. Of course, a foldable electronic device is an electronic device that folds outward, and the electronic device stands upright on the desktop in a semi-folded state. The directions of different split-screen display interfaces of the display screen are different, which is more convenient for users to use.

[0039] The following embodiments are described in detail by taking the case where the display screen of an electronic device that folds outward is in an unfolded state and the split screen can be adjusted by 180° as an example.

[0040] Figures 1 to 3 Three application scenarios of adjusting the display direction of the right split screen of a foldable electronic device are shown. The foldable electronic device uses the left and right split screens to display the interfaces of the same or different applications. The applications may include multiple types. For example, the applications may refer to text applications, such as PPT, documents, conference applications, video applications that can play videos, instant messaging applications, game applications, etc.

[0041] For example, Figure 1 In (a), the left split screen displays an interface 101 of an instant messaging application, and the right split screen displays an interface 102 of a text application. A button 103 is displayed at the connection between the left and right split screens, and the button 103 is used to display multiple operable items.

[0042] The user clicks button 103, and the electronic device responds to the user's click operation, such as Figure 1 As shown in (b), three operable items are displayed, namely, an upper and lower split screen button 104, a switch left screen direction button 105, and a switch right screen direction button 106. The upper and lower split screen button 104 is used to control the electronic device to split the screen up and down, the switch left screen direction button 105 is used to adjust the display direction of the left split screen, and the switch right screen direction button 106 is used to adjust the display direction of the right split screen.

[0043] The user clicks the right screen direction button 106, and the electronic device responds to the user's click operation, such as Figure 1 As shown in (c), the interface displayed on the right split screen is adjusted 180° in the clockwise direction and then displayed.

[0044] For example, Figure 2 (a) shows a video playback interface 201 displayed on the left split screen, and an 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. The user clicks the button 103, and the electronic device responds to the user's click operation, such as Figure 2 As shown in (b), the upper and lower split screen buttons, the left screen switch direction button and the right screen switch direction button 106 are displayed. The user clicks the right screen switch direction button 106, and the electronic device responds to the user's click operation, such as Figure 2 As shown in (c), the interface displayed on the right split screen is adjusted 180° in the clockwise direction and then displayed.

[0045] For example, Figure 3 In (a), the left split screen displays a video playback interface 301, and the right split screen displays a game interface 302. A button 103 is displayed at the connection between the left and right split screens. The user clicks the button 103, and the electronic device responds to the user's click operation, such as Figure 3 As shown in (b), the upper and lower split screen buttons, the left screen switch direction button and the right screen switch direction button 106 are displayed. The user clicks the right screen switch direction button 106, and the electronic device responds to the user's click operation, such as Figure 3 As shown in (c), the interface displayed on the right split screen is adjusted 180° in the clockwise direction and then displayed.

[0046] Figure 4 and Figure 5 Two application scenarios of adjusting the display direction of the upper split screen of a foldable electronic device are shown. The foldable electronic device uses the upper and lower split screens to display the interfaces of the same or different applications.

[0047] For example, Figure 4 In (a), the upper split screen displays an interface 401 of an instant messaging application, and the lower split screen displays an interface 402 of a text application. A button 103 is displayed at the junction of the upper and lower split screens. The user clicks the button 103, and the electronic device responds to the user's click operation, such as Figure 4 As shown in (b), a left-right split screen button 403, a switch upper screen direction button 404, and a switch lower screen direction button 405 are displayed. The user clicks the switch upper screen direction button 404, and the electronic device responds to the user's click operation, such as Figure 4 As shown in (c), the interface displayed on the upper split screen is adjusted 180° in the clockwise direction and then displayed.

[0048] For example, Figure 5 (a) shows that the upper split screen displays the playback interface 501 of the first video, and the lower split screen displays the playback interface 502 of the second video. A button 103 is displayed at the connection between the upper and lower split screens. The user clicks the button 103, and 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 upper screen direction switch button 404 and the lower screen direction switch button are displayed. The user clicks the upper screen direction switch button 404, and the electronic device responds to the user's click operation, such as Figure 5 As shown in (c), the interface displayed on the upper split screen is adjusted 180° in the clockwise direction and then displayed.

[0049] Figures 1 to 5 In the application scenario, a button for switching a split screen direction displayed on a foldable electronic device is used to control the interface of the split screen display to select a default angle, such as Figures 1 to 5 180° is adjusted in the clockwise direction as shown in the figure. Of course, the way in which the electronic device controls the split-screen display interface to adjust the direction 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. Exemplarily, when the user clicks a button to switch a certain split-screen direction, the electronic device may also display a submenu, which may include different rotation angles, such as 45°, 90°, 180°, etc. in a clockwise direction. The user can select the corresponding rotation angle according to the needs to control the split-screen display interface to adjust the display direction.

[0050] After the display direction of a split screen interface of the foldable electronic device is adjusted, the user can also input an operation to restore the split screen interface. Exemplarily, the user clicks button 103, and then clicks the button for switching the split screen direction, and the electronic device can restore the split screen interface with the adjusted display direction to the original display direction.

[0051] Figure 6 Another way for a user to adjust the display direction of a split screen of a foldable electronic device is shown. For example, Figure 6 As shown in (a), the left split screen of the foldable electronic device displays an interface 101 of an instant messaging application, and the right split screen displays an interface 102 of a text application. A button 107 is displayed at the top of both the left split screen and the right split screen. The button 107 is used to adjust the display direction of the split screen.

[0052] In some embodiments, the user clicks the button 107 displayed on the right split screen 102, and the electronic device responds to the user's click operation, such as Figure 1 As shown in (c), the interface displayed on the right split screen is adjusted 180° in the clockwise direction and then displayed. Figure 1 In the example of the button 107 on the right split screen shown in (c), the electronic device responds to the user's click operation and restores the interface displayed on the right split screen, such as Figure 6 As shown in (a).

[0053] In some other embodiments, the user clicks button 107 displayed on the right split screen 102, and the electronic device, in response to the user's click operation, adjusts the interface displayed on the right split screen by 90° in the clockwise direction before displaying it. The user clicks button 107 again on the right split screen after the direction is adjusted, and the electronic device, in response to the user's click operation, adjusts the interface displayed on the right split screen by another 90° in the clockwise direction before displaying it. The user continues to click button 107 on the right split screen after the direction is adjusted, and the electronic device, in response to the user's click operation, restores the interface displayed on the right split screen, such as Figure 6 As shown in (a).

[0054] In other embodiments, when the user clicks the button 107 for switching a split-screen direction, the electronic device may also display a submenu, which may include different rotation angles, such as 45°, 90°, 180°, etc. in a clockwise direction. The user can select the corresponding rotation angle according to needs to control the split-screen display interface to adjust the display direction.

[0055] Figures 1 to 6 The display shows the user input operation to adjust the direction of a split screen. In some embodiments, the foldable electronic device can also automatically adjust the direction of the split screen. The foldable electronic device can be configured to automatically adjust the direction of the split screen when it is in a specific posture, and the specific posture can 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, the display screen is split to display the interface of the same or different applications, and the user adjusts the foldable electronic device to a semi-folded state, and the foldable electronic device can automatically adjust the direction of a split screen.

[0057] For example, Figure 7 (a) shows a foldable electronic device in an unfolded state, and its display screen displays different videos in an upper and lower split screen mode, that is, the upper split screen displays the first video, and the lower split screen displays the second video. In order to facilitate two users to watch two videos face to face, the foldable electronic device is adjusted from the unfolded state to the semi-folded state, such as Figure 7 As shown in (b) and (c), the interface of the video displayed on the upper split screen of the foldable electronic device automatically rotates 180° in a clockwise direction.

[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 split screen, the foldable electronic device automatically rotates a split-screen interface 180° clockwise and displays it.

[0059] Foldable electronic devices can also automatically adjust a split-screen display interface to rotate 45°, 90°, or other angles in a clockwise direction.

[0060] It can be seen from the above content that in the split-screen display scenario of the foldable electronic device, in order to facilitate user use, the split-screen display interface of the foldable electronic device can adjust the direction.

[0061] Foldable electronic devices can be mobile phones, tablet computers, personal digital assistants (PDA), desktops, laptops, notebook computers, ultra-mobile personal computers (UMPC), handheld computers, netbooks, wearable devices and other devices, with a foldable display screen.

[0062] Take foldable screen mobile phones as an example. Figure 8 This is an example of the composition of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 100 may include a processor 110 , an internal memory 120 , a camera 130 , a display screen 140 , a sensor module 150 , and the like.

[0063] It is to be 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 shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0064] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), a video codec, and the like.

[0065] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.

[0066] The internal memory 120 may be used to store computer executable program codes, and the executable program codes include instructions. In some embodiments, the internal memory 120 stores instructions for executing the split-screen display method. The processor 110 may implement split-screen display data and adjust the direction of the split-screen display window by executing the instructions stored in the internal memory 120.

[0067] The electronic device 100 can realize the shooting function through the ISP, the camera 130, the video codec, the GPU, the display screen 140, and the application processor, etc. The electronic device 100 can also realize the display function through the GPU, the display screen 140, and the application processor, etc.

[0068] The display screen 140 is used to display images, videos, etc. The display screen 140 includes a display panel. In some embodiments, the electronic device may include 1 or N display screens 140, where N is a positive integer greater than 1. The display screen 140 is a foldable display screen.

[0069] In the sensor module 150, the pressure sensor 150A is used to sense the pressure signal and convert the pressure signal into an electrical signal. The touch sensor 150B is also called a "touch device". The touch sensor 150B can be set on the display screen 140, and the touch sensor 150B and the display screen 140 form a touch screen, also called a "touch screen". The touch sensor 150B is used to detect touch operations acting on or near it. The acceleration sensor 180C can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The hinge angle sensor 180D can detect the folding angle of the display screen of the electronic device 100.

[0070] In addition, an operating system is run on the above components. The operating system of the electronic device can be arranged in layers. Fig. 9 The software structure diagram of the electronic device is shown. Fig. 9 As shown, the operating system of the electronic device is divided into four layers, which are, from top to bottom, the application layer, the application framework layer, the Android runtime (Android runtime) and system library, and the kernel layer.

[0071] The application layer can include a series of application packages. Fig. 9 As shown, the application package may include text applications, instant messaging applications, video applications, and the like.

[0072] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. Fig. 9As shown, the application framework layer may include a window management service (WindowManagerService, WMS) and a posture recognition module, wherein the window management service is used to manage windows, and the posture recognition module may identify the posture of the electronic device based on the detection data of the sensor, and the posture may include: a folded state, an unfolded state, and a semi-folded state. The semi-folded state of the electronic device folded outwards may also be called a calendar form or a tent form, and the semi-folded state of the electronic device folded inwards may also be called a notebook form or a 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 displayed sensors are running and can also report the sensor's detection data to the upper-level module.

[0074] The following introduces the split-screen display method provided in the embodiment of the present application in combination with the gesture recognition module and the window management service.

[0075] Fig.10 A split-screen display method provided in an embodiment of the present application is demonstrated. A foldable electronic device can execute the split-screen display method to automatically adjust the display direction of the split screen based on the device posture.

[0076] like Fig.10 As shown, the split-screen display method provided in the embodiment of the present application includes the steps of:

[0077] S101. The sensor driver receives detection data reported by the acceleration sensor and the hinge angle sensor.

[0078] In some embodiments, the acceleration sensor and the hinge angle sensor may be operated periodically to collect detection data. The acceleration sensor and the hinge angle sensor may report the detection data obtained by themselves to the sensor driver.

[0079] S102: The sensor driver reports detection data of the acceleration sensor and the hinge angle sensor to the posture recognition module.

[0080] After the sensor driver receives the detection data from the acceleration sensor and the hinge angle sensor, it can report the detection data to the posture 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 of the acceleration sensor and the hinge angle sensor. Therefore, the posture recognition module obtains the posture of the electronic device in a data format that the window management module can recognize based on the detection data. The posture of the electronic device is also called the posture information of the electronic device, which usually refers to the posture of the display screen of the electronic device, including folded state, unfolded state, and semi-folded state.

[0083] The specific implementation method of the posture recognition module obtaining the posture of the electronic device based on the detection data can be referred to conventional technology and will not be described in detail here.

[0084] In some embodiments, the window management module has the ability to identify detection data from the acceleration sensor and the hinge angle sensor, and the sensor driver can also directly report the detection data to the window management module. The window management module obtains the posture 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 gesture recognition module reports the gesture of the electronic device to the window management service.

[0087] In some embodiments, the acceleration sensor and the hinge angle sensor can be operated periodically, and the obtained detection data can be driven by the sensor to the posture recognition module. The posture recognition module obtains the posture of the electronic device based on the detection data of each sensor drive, and reports the posture of the electronic device to the window management service. Based on this, the window management service can obtain the posture 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 that the posture of the electronic device is that the display screen is in an unfolded state or a semi-folded state, and creates a first display area (DisplayArea) and a second display area (DisplayArea). Of course, based on the posture of the electronic device, before creating the first display area and the second display area, the window management service can also determine that the foldable electronic device is to enter a split-screen display scenario, that is, two split screens display the interfaces of two applications, and the two applications are the same or different applications. It can be understood that the desktop also belongs to 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, for displaying interfaces of two applications respectively.

[0091] S106: The window management service sets the direction of the first display area to be the first direction, and the direction of the second display area to be the second direction.

[0092] The window management service creates a first display area and a second display area, and can configure directions respectively. The direction of the first display area is the display direction of the interface of the application displayed in the first display area. Similarly, the direction of the second display area is the display direction of the interface of the application displayed in the second display area.

[0093] In some embodiments, the window management service determines that the posture of the electronic device is that the display screen is in an unfolded state or a semi-folded state, and determines that the foldable electronic device enters a split-screen display scene, and the window management service can set the direction of the first display area to be the first direction, and the direction of the second display area to be the second direction, and the first direction and the second direction are different directions. In some embodiments, the first direction and the second direction are opposite directions to each other, and the second direction can be realized as the direction after the first direction is rotated 108° clockwise.

[0094] In other embodiments, the window management service determines that the posture of the electronic device switches from an unfolded state to a semi-folded state, and determines that the foldable electronic device enters a split-screen display scene. The window management service can set the direction of the first display area to a first direction, and the direction of the second display area to a second direction, so that the first direction and the second direction are different directions.

[0095] S107: The window management service controls the windows in the first display area to be displayed in a first direction, and controls the windows in the second display area to be displayed in a second direction.

[0096] The window of the first display area may refer to the interface of the application displayed in the first display area, and the window of the second display area may refer to the interface of the application displayed in the second display area. The first direction and the second direction are different directions, so that the interface of the application displayed in the first display area and the interface of the application displayed in the second display area are different.

[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 posture of the electronic device is switched from the unfolded state to the 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 the first direction and the direction of the second display area to the second direction. The first direction and the second direction are opposite directions to each other. Based on this, the window management service controls the windows of the first display area to be displayed in the first direction, and controls the windows of the second display area to be displayed in the second direction, which can be realized. Figure 7 The display methods shown in (b) and (c) are shown in FIG.

[0098] Fig.11 A split-screen display method provided in an embodiment of the present application is demonstrated. A foldable electronic device can execute the split-screen display method to adjust the display direction of the split screen based on user operations.

[0099] like Fig.11 As shown, the split-screen display method provided in the embodiment of the present application includes the steps of:

[0100] S201. The sensor driver receives detection data reported by the acceleration sensor and the hinge angle sensor.

[0101] S202: The sensor driver reports detection data of the acceleration sensor and the hinge angle sensor to the posture 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 of steps S201 to S204 can be found in Fig.10 The contents of step S101 to step S104 in the corresponding embodiment are not repeated here.

[0105] S205: The window management service determines that the posture of the electronic device is that the display screen is in an unfolded state or a semi-folded state, and creates a first display area and a second display area.

[0106] Before the window management service creates the first display area and the second display area, it is also determined that the foldable electronic device enters a split-screen display scenario. The window management service configures the first display area and the second display area to have default directions. Usually, the default direction indicates that the first display area and the second display area have the same direction.

[0107] S206: The window management service controls the window in the first display area and the window in the second display area to be displayed in a default direction, and displays a first button in the first display area and the second display area.

[0108] The window of the first display area may refer to the interface of the application displayed in the first display area, and the window of the second display area may refer to the interface of the application displayed in the second display area. The interface of the application displayed in the first display area and the interface of the application displayed in the second display area are displayed in a default direction, that is, they are displayed in the same direction. In order to enable the user to manually adjust the direction of the window of the first display area or the window of the second display area, the window management service controls the window of the first display area and the window of the second display area to be displayed in the default direction, and also displays a first button in the first display area and the second display area.

[0109] Combination Figures 1 to 5 In the displayed scenario, the first display area corresponds to one split screen, the second display area corresponds to another split screen, and the first button refers to button 103. The first button can support the user to adjust the direction of the window in the first display area or the window in the second display area.

[0110] S207: In response to the user clicking the button, the window management service displays the second button and the third button in the first display area and the second display area.

[0111] The user performs a click operation on the first button, and the foldable electronic device receives the user's click operation and can send the click operation as an event to the window management service. The window management service receives the event and can display the second button and the third button in the first display area and the second display area in response to the event, the second button is used to adjust the direction of the first display area, and the third button is used to adjust the direction of the second display area.

[0112] Combination Figures 1 to 3 In the displayed scene, the second button refers to the left screen direction button 105, and the third button refers to the right screen direction button 106; Figure 4 and Figure 5 In the displayed scenario, the second button refers to the switch lower screen direction button 405, and the third button refers to the switch upper screen direction button 404.

[0113] S208: In response to the user clicking the third button, the window management service sets the direction of the second display area to the first direction.

[0114] If the user wants to adjust the direction of the second display area, the user clicks the third button, and the foldable electronic device receives the user's click operation and may also send the click operation as an event to the window management service. The window management service receives the event and may respond to the event to set the direction of the second display area to the first direction. The first direction may be the opposite direction of the default direction, or a direction rotated from the default direction to an angle other than 180°.

[0115] Of course, if the user wants to adjust the direction of the first display area, the user clicks the second button, and the foldable electronic device receives the user's click operation and may also send the click operation as an event to the window management service. The window management service receives the event and may set the direction of the first display area to the first direction in response to the event.

[0116] S209: The window management service controls the window in the second display area to be displayed in the first direction.

[0117] Combination Figures 1 to 3 In the scenario shown, the first display area corresponds to the left split screen, the second display area corresponds to the right split screen, the user clicks the third button, i.e., the right screen direction switch button 106, the window management service sets the direction of the second display area to the first direction, the first direction may be the opposite direction of the default direction, and the window management service controls the window of the second display area to be displayed in the first direction, so as to achieve Figure 1 Middle (c), Figure 2 (c) and Figure 3 As shown in (c), the interface of the application displayed on the right split screen is rotated 180° from the original direction and then displayed.

[0118] Combination Figure 4 and Figure 5 In the scenario shown, the first display area corresponds to the lower split screen, the second display area corresponds to the upper split screen, the user clicks the third button, i.e., the upper screen direction switch button 404, the window management service sets the direction of the second display area to the first direction, the first direction may be the opposite direction of the default direction, and the window management service controls the window of the second display area to be displayed in the first direction, so as to achieve Figure 4 (c) and Figure 5 As shown in (c), the interface of the application displayed on the upper split screen is rotated 180° from the original direction and then displayed.

[0119] In some embodiments, the electronic device displays multiple options for adjusting the angle of the split-screen display interface. Exemplarily, when a user clicks a button for switching a certain split-screen direction, the electronic device may also display a submenu, which may include different rotation angles, such as 45°, 90°, 180°, etc., which rotate clockwise. The user may select the corresponding rotation angle according to the needs to control the split-screen display interface to adjust the display direction. For example, when the button for a certain split-screen direction is the third button, after the window management service executes step S207, it may display a submenu in the first display area and the second display area in response to the user clicking the third button. After the user selects a certain rotation angle in the submenu, the window management service responds to the user's selection operation and sets the direction of the second display area to a specific direction, which is the direction after the default direction is rotated by the rotation angle selected by the user.

[0120] Another embodiment of the present application further provides a computer-readable storage medium, which stores instructions, and when the computer-readable storage medium is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.

[0121] The computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0122] Another embodiment of the present application further provides a computer program product including instructions. When the computer program product is run on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.

Claims

1. A split-screen display method, It is characterized in that include: The foldable electronic device displays a first interface on a first split screen and displays a second interface on a second split screen, the first interface and the second interface further display a first button, and the first interface and the second interface are displayed in a first direction; In response to a user clicking operation on the first button, the second interface displayed on the second split screen of the foldable electronic device is adjusted to a second direction, and the second direction is different from the first direction.

2. The split-screen display method according to claim 1, It is characterized in that The first buttons include two, the first interface displays one first button, the second interface displays another first button, and in response to a user clicking operation on the first button, the foldable electronic device adjusts the second interface displayed on the second split screen to a second direction, including: In response to a user clicking operation on a first button displayed on the second interface, the foldable electronic device adjusts the second interface displayed on the second split screen to a second direction.

3. The split-screen display method according to claim 1, It is characterized in that The first buttons include two, and the connection area of ​​the first interface and the second interface displays the two first buttons.

4. The split-screen display method according to claim 1 or 3, It is characterized in that Also includes: The foldable electronic device displays the first interface on the first split screen, displays the second interface on the second split screen, and displays a second button in a connection area between the first interface and the second interface; The foldable electronic device displays a first interface on a first split screen and displays a second interface on a second split screen, and the first interface and the second interface further display a first button, including: In response to the user clicking the second button, the foldable electronic device displays the first interface on the first split screen and displays the second interface on the second split screen, and the first interface and the second interface also display the first button.

5. The split-screen display method according to claim 4, It is characterized in that In response to the user clicking the first button, the process of adjusting the second interface displayed on the second split screen of the foldable electronic device to a second direction further includes: The foldable electronic device displays the second button in a connection area between the first interface and the second interface, but does not display the first button.

6. The split-screen display method according to any one of claims 1 to 5, It is characterized in that The second direction is the opposite direction of the first direction.

7. The split-screen display method according to claim 1, It is characterized in that The foldable electronic device displays a first interface on a first split screen and displays a second interface on a second split screen, and the first interface and the second interface further display a first button, including: The foldable electronic device creates a first display area and a second display area, the first display area corresponds to the first split screen, and the second display area corresponds to the second split screen; The foldable electronic device controls the window in the first display area and the window in the second display area to be displayed in the first direction, and displays the first button in the first display area and the second display area; 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; In response to the user clicking the first button, the foldable electronic device adjusting the second interface displayed on the second split screen to a second direction, including: In response to the user clicking the first button, the foldable electronic device sets the direction 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.

8. A split-screen display method, It is characterized in that include: The display screen of the foldable electronic device is in a first posture; 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 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, and the direction of the second interface is a second direction, and the second direction is different from the first direction.

9. The split-screen display method according to claim 8, It is characterized in that The display screen of the foldable electronic device is in a first posture, comprising: The display screen of the foldable electronic device is in an unfolded state, and the display screen is divided into a first split screen for displaying the first interface and a second split screen for displaying the second interface; The display screen of the foldable electronic device is adjusted from a first posture to a second posture, including: the display screen of the foldable electronic device is adjusted from an unfolded state to a semi-folded state.

10. The split-screen display method according to claim 9, It is characterized in that The foldable electronic device is an electronic device with a display screen folded outwards.

11. The split-screen display method according to claim 8, It is characterized in that 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, including: When the display screen of the foldable electronic device is adjusted from the first posture to the second posture, 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 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.

12. An electronic device, It is characterized in that include: one or more processors, memory, and display screens; 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 includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the split-screen display method as described in any one of claims 1 to 11.

13. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed, is specifically used to implement the split-screen display method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Electronic device comprising multiple displays and method for operating same

    CN109691073A

  • Control method and device based on multiple screens

    CN113064567A

  • Screen display control method and device, electronic equipment and storage medium

    CN113467686A

  • Display method and electronic equipment

    CN115686407A

  • Display direction switching method and electronic equipment

    CN117009024A